Skip to main content

dcOption

Data center

type tg.DCOption struct { /* ... */ }

Fields​

NameTypeRequiredDescription
Ipv6bool—Whether the specified IP is an IPv6 address
MediaOnlybool—Whether this DC should only be used to download or upload files
TCPObfuscatedOnlybool—Whether this DC only supports connection with transport obfuscation
CDNbool—Whether this is a CDN DC.
Staticbool—If set, this IP should be used when connecting through a proxy
ThisPortOnlybool—If set, clients must connect using only the specified port, without trying any other port.
IDintyesDC ID
IPAddressstringyesIP address of DC
PortintyesPort
Secret[]byte—If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation

References​