dcOption
Data center
type tg.DCOption struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Ipv6 | bool | — | Whether the specified IP is an IPv6 address |
MediaOnly | bool | — | Whether this DC should only be used to download or upload files |
TCPObfuscatedOnly | bool | — | Whether this DC only supports connection with transport obfuscation |
CDN | bool | — | Whether this is a CDN DC. |
Static | bool | — | If set, this IP should be used when connecting through a proxy |
ThisPortOnly | bool | — | If set, clients must connect using only the specified port, without trying any other port. |
ID | int | yes | DC ID |
IPAddress | string | yes | IP address of DC |
Port | int | yes | Port |
Secret | []byte | — | If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation |
References
- Official documentation
- Generated Go reference
- TL definition:
dcOption#18b7a10d