update 2023-09-05 16:22:53
This commit is contained in:
parent
d4cd56acc6
commit
a162e512ad
|
@ -5,7 +5,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-passwall2
|
PKG_NAME:=luci-app-passwall2
|
||||||
PKG_VERSION:=1.20-2
|
PKG_VERSION:=1.20-3
|
||||||
PKG_RELEASE:=
|
PKG_RELEASE:=
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
|
|
@ -420,20 +420,24 @@ o.default = "0"
|
||||||
o:depends({ [option_name("tls")] = true })
|
o:depends({ [option_name("tls")] = true })
|
||||||
|
|
||||||
if singbox_tags:find("with_utls") then
|
if singbox_tags:find("with_utls") then
|
||||||
o = s:option(Value, option_name("fingerprint"), translate("Finger Print"), translate("Avoid using randomized, unless you have to."))
|
o = s:option(Flag, option_name("utls"), translate("uTLS"))
|
||||||
o:value("", translate("Disable"))
|
o.default = "0"
|
||||||
|
o:depends({ [option_name("tls")] = true, [option_name("reality")] = false })
|
||||||
|
|
||||||
|
o = s:option(ListValue, option_name("fingerprint"), translate("Finger Print"))
|
||||||
o:value("chrome")
|
o:value("chrome")
|
||||||
o:value("firefox")
|
o:value("firefox")
|
||||||
o:value("safari")
|
|
||||||
o:value("ios")
|
|
||||||
-- o:value("android")
|
|
||||||
o:value("edge")
|
o:value("edge")
|
||||||
-- o:value("360")
|
o:value("safari")
|
||||||
|
o:value("360")
|
||||||
o:value("qq")
|
o:value("qq")
|
||||||
|
o:value("ios")
|
||||||
|
o:value("android")
|
||||||
o:value("random")
|
o:value("random")
|
||||||
o:value("randomized")
|
o:value("randomized")
|
||||||
o.default = ""
|
o.default = "chrome"
|
||||||
o:depends({ [option_name("tls")] = true, [option_name("reality")] = false })
|
o:depends({ [option_name("tls")] = true, [option_name("utls")] = true })
|
||||||
|
o:depends({ [option_name("tls")] = true, [option_name("reality")] = true })
|
||||||
end
|
end
|
||||||
|
|
||||||
o = s:option(ListValue, option_name("transport"), translate("Transport"))
|
o = s:option(ListValue, option_name("transport"), translate("Transport"))
|
||||||
|
|
|
@ -94,7 +94,7 @@ function gen_outbound(flag, node, tag, proxy_table)
|
||||||
--min_version = "1.2",
|
--min_version = "1.2",
|
||||||
--max_version = "1.3",
|
--max_version = "1.3",
|
||||||
utls = {
|
utls = {
|
||||||
enabled = (node.fingerprint ~= "") and true or false,
|
enabled = (node.utls == "1" or node.reality == "1") and true or false,
|
||||||
fingerprint = node.fingerprint or "chrome"
|
fingerprint = node.fingerprint or "chrome"
|
||||||
},
|
},
|
||||||
reality = {
|
reality = {
|
||||||
|
@ -657,7 +657,7 @@ function gen_config(var)
|
||||||
local inbounds = {}
|
local inbounds = {}
|
||||||
local outbounds = {}
|
local outbounds = {}
|
||||||
|
|
||||||
local singbox_settings = uci:get_all(appname, "@global_singbox[0]" or {})
|
local singbox_settings = uci:get_all(appname, "@global_singbox[0]") or {}
|
||||||
|
|
||||||
local route = {
|
local route = {
|
||||||
rules = {},
|
rules = {},
|
||||||
|
|
|
@ -703,6 +703,9 @@ msgstr "启用自定义规则地址"
|
||||||
msgid "Rule status"
|
msgid "Rule status"
|
||||||
msgstr "规则版本"
|
msgstr "规则版本"
|
||||||
|
|
||||||
|
msgid "Manually update"
|
||||||
|
msgstr "手动更新"
|
||||||
|
|
||||||
msgid "Enable auto update rules"
|
msgid "Enable auto update rules"
|
||||||
msgstr "开启自动更新规则"
|
msgstr "开启自动更新规则"
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,17 @@ global_xray=$(uci -q get passwall2.@global_xray[0])
|
||||||
uci -q commit passwall2
|
uci -q commit passwall2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
global_singbox=$(uci -q get passwall2.@global_singbox[0])
|
||||||
|
[ -z "${global_singbox}" ] && {
|
||||||
|
cfgid=$(uci add passwall2 global_singbox)
|
||||||
|
uci -q set passwall2.${cfgid}.sniff_override_destination=1
|
||||||
|
uci -q set passwall2.${cfgid}.geoip_path="/tmp/singbox/geoip.db"
|
||||||
|
uci -q set passwall2.${cfgid}.geoip_url="https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db"
|
||||||
|
uci -q set passwall2.${cfgid}.geosite_path="/tmp/singbox/geosite.db"
|
||||||
|
uci -q set passwall2.${cfgid}.geosite_url="https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db"
|
||||||
|
uci -q commit passwall2
|
||||||
|
}
|
||||||
|
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
rm -rf /tmp/luci-modulecache/
|
rm -rf /tmp/luci-modulecache/
|
||||||
killall -HUP rpcd 2>/dev/null
|
killall -HUP rpcd 2>/dev/null
|
||||||
|
|
|
@ -566,7 +566,7 @@ eof
|
||||||
}
|
}
|
||||||
|
|
||||||
lua $UTIL_SINGBOX gen_config -node $node -redir_port $redir_port -tcp_proxy_way $tcp_proxy_way ${_extra_param} > $config_file
|
lua $UTIL_SINGBOX gen_config -node $node -redir_port $redir_port -tcp_proxy_way $tcp_proxy_way ${_extra_param} > $config_file
|
||||||
ln_run "$(first_type $(config_t_get global_app singbox_file) sing-box)" "sing-box" "/dev/null" run -c "$config_file"
|
ln_run "$(first_type $(config_t_get global_app singbox_file) sing-box)" "sing-box" "${log_file}" run -c "$config_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_socks() {
|
run_socks() {
|
||||||
|
|
|
@ -206,6 +206,12 @@ start() {
|
||||||
else
|
else
|
||||||
echo tc_classid_mode=0 >/dev/qos_ctl
|
echo tc_classid_mode=0 >/dev/qos_ctl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p /tmp/config
|
||||||
|
touch /tmp/config/natflow-qos
|
||||||
|
ln -s /tmp/config/natflow-qos /etc/config/natflow-qos &>/dev/null
|
||||||
|
config_load natflow-qos
|
||||||
|
config_foreach natflow_qos_setup qos
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
|
Loading…
Reference in New Issue