ProxySettings
Assembly: ZennoLab.CommandCenter
Full name: ZennoLab.CommandCenter.ProxySettings
Kind: class
Represents a proxy settings object.
Constructor
ProxySettings(string proxyString, bool useProxifier, bool emulateGeolocation, bool emulateTimezone, bool emulateWebrtc)
Constructor
ProxySettings simple constructor
Parameters
| Type | Name | Description |
|---|---|---|
string | proxyString | The parameters of proxy. This string should has the follow format: [protocol://](login):(password)@:(port). For example: socks5://192.168.0.1:80 |
bool | useProxifier | The true if use proxifier; otherwise and default, false. |
bool | emulateGeolocation | The true if need emulate geolocation according with the ip; otherwise and default, false. |
bool | emulateTimezone | The true if need emulate timezone according with the ip; otherwise and default, false. |
bool | emulateWebrtc | The true if need emulate webrtc addresses according with the ip; otherwise and default, false. |
ProxySettings(string ip, int port, string type, string login, string password, bool useProxifier, bool emulateGeolocation, bool emulateTimezone, bool emulateWebrtc)
Constructor
ProxySettings detailed constructor
Parameters
| Type | Name | Description |
|---|---|---|
string | ip | The IP address for the proxy. |
int | port | The port for the instance. |
string | type | The type of proxy. It’s can be http, socks4 or socks5 |
string | login | The login for authorization. |
string | password | The password for authorization. |
bool | useProxifier | The true if use proxifier; otherwise and default, false. |
bool | emulateGeolocation | The true if need emulate geolocation according with the ip; otherwise and default, false. |
bool | emulateTimezone | The true if need emulate timezone according with the ip; otherwise and default, false. |
bool | emulateWebrtc | The true if need emulate webrtc addresses according with the ip; otherwise and default, false. |
Properties
Ip
Property
string Ip { get; set; }
The IP address for the proxy.
Port
Property
int Port { get; set; }
The port for the instance.
Type
Property
string Type { get; set; }
The type of proxy. It’s can be http, socks4 or socks5
Login
Property
string Login { get; set; }
The login for authorization.
Password
Property
string Password { get; set; }
The password for authorization.
UseProxifier
Property
bool UseProxifier { get; set; }
The true if use proxifier; otherwise and default, false.
EmulateGeolocation
Property
bool EmulateGeolocation { get; set; }
The true if need emulate geolocation according with the ip; otherwise and default, false.
EmulateTimezone
Property
bool EmulateTimezone { get; set; }
The true if need emulate timezone according with the ip; otherwise and default, false.
EmulateWebrtc
Property
bool EmulateWebrtc { get; set; }
The true if need emulate webrtc addresses according with the ip; otherwise and default, false.
IpResolving
Property
ResolvingBase IpResolving { get; set; }
Rules for resolving “output” IP of proxy.