use canonical links config in init output

This commit is contained in:
sabraman 2026-03-22 23:41:42 +03:00
parent e35d69c61f
commit 479c2f9866
1 changed files with 3 additions and 2 deletions

View File

@ -186,8 +186,6 @@ fn generate_config(username: &str, secret: &str, port: u16, domain: &str) -> Str
r#"# Telemt MTProxy — auto-generated config
# Re-run `telemt --init` to regenerate
show_link = ["{username}"]
[general]
# prefer_ipv6 is deprecated; use [network].prefer
prefer_ipv6 = false
@ -219,6 +217,9 @@ classic = false
secure = false
tls = true
[general.links]
show = ["{username}"]
[server]
port = {port}
listen_addr_ipv4 = "0.0.0.0"