From 9782e2885cc4c065ad2e93ce5a9c80f47c26b4b0 Mon Sep 17 00:00:00 2001 From: Gzxhwq Date: Mon, 25 Sep 2023 01:03:25 +0800 Subject: [PATCH] luci: disable sniff_override_destination (#2824) --- luci-app-passwall/luasrc/model/cbi/passwall/client/other.lua | 2 +- luci-app-passwall/root/etc/uci-defaults/luci-passwall | 2 +- luci-app-passwall/root/usr/share/passwall/0_default_config | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/other.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/other.lua index 24475f309..881ba29cf 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/other.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/other.lua @@ -180,7 +180,7 @@ if has_singbox then s.addremove = false o = s:option(Flag, "sniff_override_destination", translate("Override the connection destination address"), translate("Override the connection destination address with the sniffed domain.")) - o.default = 1 + o.default = 0 o.rmempty = false o = s:option(Value, "geoip_path", translate("Custom geoip Path")) diff --git a/luci-app-passwall/root/etc/uci-defaults/luci-passwall b/luci-app-passwall/root/etc/uci-defaults/luci-passwall index d1a9834e5..39ab3209d 100755 --- a/luci-app-passwall/root/etc/uci-defaults/luci-passwall +++ b/luci-app-passwall/root/etc/uci-defaults/luci-passwall @@ -49,7 +49,7 @@ sed -i "s#option tlsflow#option flow#g" /etc/config/passwall global_singbox=$(uci -q get passwall.@global_singbox[0]) [ -z "${global_singbox}" ] && { cfgid=$(uci add passwall global_singbox) - uci -q set passwall.${cfgid}.sniff_override_destination=1 + uci -q set passwall.${cfgid}.sniff_override_destination=0 uci -q set passwall.${cfgid}.geoip_path="/tmp/singbox/geoip.db" uci -q set passwall.${cfgid}.geoip_url="https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db" uci -q set passwall.${cfgid}.geosite_path="/tmp/singbox/geosite.db" diff --git a/luci-app-passwall/root/usr/share/passwall/0_default_config b/luci-app-passwall/root/usr/share/passwall/0_default_config index 7e515acb1..756b3a999 100644 --- a/luci-app-passwall/root/usr/share/passwall/0_default_config +++ b/luci-app-passwall/root/usr/share/passwall/0_default_config @@ -44,7 +44,7 @@ config global_xray option route_only '0' config global_singbox - option sniff_override_destination '1' + option sniff_override_destination '0' option geoip_path '/usr/share/singbox/geoip.db' option geoip_url 'https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db' option geosite_path '/usr/share/singbox/geosite.db'