From c8622ad885c9c69c2b5ebc700a3e0de0fd0c29bb Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 3 Dec 2024 15:02:57 +0800 Subject: [PATCH] fix(generator/server): fix generate naive users Fixes: https://github.com/immortalwrt/homeproxy/issues/235 Signed-off-by: Tianling Shen --- root/etc/homeproxy/scripts/generate_server.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/homeproxy/scripts/generate_server.uc b/root/etc/homeproxy/scripts/generate_server.uc index 82921473..2c5dc796 100755 --- a/root/etc/homeproxy/scripts/generate_server.uc +++ b/root/etc/homeproxy/scripts/generate_server.uc @@ -82,7 +82,7 @@ uci.foreach(uciconfig, uciserver, (cfg) => { /* HTTP / Hysteria (2) / Mixed / Socks / Trojan / Tuic / VLESS / VMess */ users: (cfg.type !== 'shadowsocks') ? [ { - name: !(cfg.type in ['http', 'mixed', 'socks']) ? 'cfg-' + cfg['.name'] + '-server' : null, + name: !(cfg.type in ['http', 'mixed', 'naive', 'socks']) ? 'cfg-' + cfg['.name'] + '-server' : null, username: cfg.username, password: cfg.password,