Link Search Menu Expand Document

Constructor: dcOption

Back to constructors index

Data center

Attributes:

NameTypeRequiredDescription
ipv6BoolOptionalWhether the specified IP is an IPv6 address
media_onlyBoolOptionalWhether this DC should only be used to download or upload files
tcpo_onlyBoolOptionalWhether this DC only supports connection with transport obfuscation
cdnBoolOptionalWhether this is a CDN DC.
staticBoolOptionalIf set, this IP should be used when connecting through a proxy
this_port_onlyBoolOptionalIf set, clients must connect using only the specified port, without trying any other port.
idintYesDC ID
ip_addressstringYesIP address of DC
portintYesPort
secretstringOptional

Type: DcOption

Example:

$dcOption = ['_' => 'dcOption', 'ipv6' => Bool, 'media_only' => Bool, 'tcpo_only' => Bool, 'cdn' => Bool, 'static' => Bool, 'this_port_only' => Bool, 'id' => int, 'ip_address' => 'string', 'port' => int, 'secret' => 'string'];