AddProxy
public struct AddProxy : Codable, Equatable, TDFunction
Adds a proxy server for network requests. Can be called before authorization
-
Undocumented
Declaration
Swift
public typealias Result = Proxy
-
Proxy server IP address
Declaration
Swift
public let server: String
-
Proxy server port
Declaration
Swift
public let port: Int32
-
True, if the proxy should be enabled
Declaration
Swift
public let enable: Bool
-
Proxy type
Declaration
Swift
public let type: ProxyType
-
Adds a proxy server for network requests. Can be called before authorization
Declaration
Swift
public init(server: String, port: Int32, enable: Bool, type: ProxyType)
Parameters
server
Proxy server IP address
port
Proxy server port
enable
True, if the proxy should be enabled
type
Proxy type