Skip to main content

dcOption

Data center

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

Fields

NameTypeRequiredDescription
Ipv6boolWhether the specified IP is an IPv6 address
MediaOnlyboolWhether this DC should only be used to download or upload files
TCPObfuscatedOnlyboolWhether this DC only supports connection with transport obfuscation
CDNboolWhether this is a CDN DC.
StaticboolIf set, this IP should be used when connecting through a proxy
ThisPortOnlyboolIf set, clients must connect using only the specified port, without trying any other port.
IDintyesDC ID
IPAddressstringyesIP address of DC
PortintyesPort
Secret[]byteIf the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation

References