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

View File

@@ -231,7 +231,9 @@ listen_addr_ipv6 = "::"
# Listen on multiple interfaces/IPs (overrides listen_addr_*) # Listen on multiple interfaces/IPs (overrides listen_addr_*)
[[server.listeners]] [[server.listeners]]
ip = "0.0.0.0" 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]] [[server.listeners]]
ip = "::" ip = "::"