luci: disable sniff_override_destination (#2824)

This commit is contained in:
Gzxhwq 2023-09-25 01:03:25 +08:00 committed by sbwml
parent 35b3423c74
commit 9782e2885c
3 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ if has_singbox then
s.addremove = false 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 = 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.rmempty = false
o = s:option(Value, "geoip_path", translate("Custom geoip Path")) o = s:option(Value, "geoip_path", translate("Custom geoip Path"))

View File

@ -49,7 +49,7 @@ sed -i "s#option tlsflow#option flow#g" /etc/config/passwall
global_singbox=$(uci -q get passwall.@global_singbox[0]) global_singbox=$(uci -q get passwall.@global_singbox[0])
[ -z "${global_singbox}" ] && { [ -z "${global_singbox}" ] && {
cfgid=$(uci add passwall 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_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}.geoip_url="https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db"
uci -q set passwall.${cfgid}.geosite_path="/tmp/singbox/geosite.db" uci -q set passwall.${cfgid}.geosite_path="/tmp/singbox/geosite.db"

View File

@ -44,7 +44,7 @@ config global_xray
option route_only '0' option route_only '0'
config global_singbox config global_singbox
option sniff_override_destination '1' option sniff_override_destination '0'
option geoip_path '/usr/share/singbox/geoip.db' option geoip_path '/usr/share/singbox/geoip.db'
option geoip_url 'https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db' option geoip_url 'https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db'
option geosite_path '/usr/share/singbox/geosite.db' option geosite_path '/usr/share/singbox/geosite.db'