From 479c2f9866cf55abfb97c86b03f6cd7d581ce220 Mon Sep 17 00:00:00 2001 From: sabraman Date: Sun, 22 Mar 2026 23:41:42 +0300 Subject: [PATCH] use canonical links config in init output --- src/cli.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 6dc0e2a..bd503ef 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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"