docs: update README with new 'announce' parameter

Replace deprecated 'announce_ip' example with new 'announce' parameter
that supports both hostnames and IP addresses.
This commit is contained in:
Vladislav Yaroslavlev 2026-02-16 18:51:21 +03:00
parent a0e7210dff
commit 478fc5dd89
No known key found for this signature in database
GPG Key ID: E74236290ADCDDCD
1 changed files with 3 additions and 1 deletions

View File

@ -231,7 +231,9 @@ listen_addr_ipv6 = "::"
# Listen on multiple interfaces/IPs (overrides listen_addr_*)
[[server.listeners]]
ip = "0.0.0.0"
# announce_ip = "1.2.3.4" # Optional: Public IP for tg:// links
# announce = "my.hostname.tld" # Optional: hostname for tg:// links
# OR
# announce = "1.2.3.4" # Optional: Public IP for tg:// links
[[server.listeners]]
ip = "::"