From 691fdc3313150035570a45220e41f320ce812734 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 1 Oct 2024 22:29:02 +0800 Subject: [PATCH] chore(scripts/subscribe): minor update Signed-off-by: Tianling Shen --- root/etc/homeproxy/scripts/update_subscriptions.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/homeproxy/scripts/update_subscriptions.uc b/root/etc/homeproxy/scripts/update_subscriptions.uc index 6ed08f3a..0dfbf1fa 100755 --- a/root/etc/homeproxy/scripts/update_subscriptions.uc +++ b/root/etc/homeproxy/scripts/update_subscriptions.uc @@ -31,11 +31,11 @@ const ucimain = 'config', ucisubscription = 'subscription'; const allow_insecure = uci.get(uciconfig, ucisubscription, 'allow_insecure') || '0', - user_agent = uci.get(uciconfig, ucisubscription, 'user_agent'), filter_mode = uci.get(uciconfig, ucisubscription, 'filter_nodes') || 'disabled', filter_keywords = uci.get(uciconfig, ucisubscription, 'filter_keywords') || [], packet_encoding = uci.get(uciconfig, ucisubscription, 'packet_encoding') || 'xudp', subscription_urls = uci.get(uciconfig, ucisubscription, 'subscription_url') || [], + user_agent = uci.get(uciconfig, ucisubscription, 'user_agent'), via_proxy = uci.get(uciconfig, ucisubscription, 'update_via_proxy') || '0'; const routing_mode = uci.get(uciconfig, ucimain, 'routing_mode') || 'bypass_mainalnd_china'; @@ -386,7 +386,7 @@ function parse_uri(uri) { /* * https://www.v2fly.org/config/protocols/vmess.html#vmess-md5-%E8%AE%A4%E8%AF%81%E4%BF%A1%E6%81%AF-%E6%B7%98%E6%B1%B0%E6%9C%BA%E5%88%B6 * else if (uri.aid && int(uri.aid) !== 0) { - * log(sprintf('Skipping unsupported %s node: %s.', 'VMess', uri.ps || uri.add)); + * log(sprintf('Skipping unsupported %s node: %s.', uri[0], uri.ps || uri.add)); * return null; * } */