diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 38b71a7e..4fc50b71 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall PKG_VERSION:=26.5.11 -PKG_RELEASE:=120 +PKG_RELEASE:=121 PKG_PO_VERSION:=$(PKG_VERSION) PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua index 3227e3f1..7fdb88b1 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua @@ -483,6 +483,12 @@ if has_xray then o:value("xray", "Xray") end o:depends({ _tcp_node_bool = "1", _node_sel_other = "1" }) +o.write = function(self, section, value) + if value == "dns2socks" then + m:del(section, "v2ray_dns_mode") + end + return ListValue.write(self, section, value) +end o.remove = function(self, section) local f = s.fields["tcp_node"] local id_val = f and f:formvalue(section) or "" diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua index 588c0653..ab1f8841 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua @@ -305,6 +305,12 @@ if has_xray then end o:depends({ dns_shunt = "chinadns-ng", _node_sel_other = "1" }) o:depends({ dns_shunt = "dnsmasq", _node_sel_other = "1" }) +o.write = function(self, section, value) + if value ~= "sing-box" and value ~= "xray" then + m:del(section, "v2ray_dns_mode") + end + return ListValue.write(self, section, value) +end o.remove = function(self, section) local f = s.fields["smartdns_dns_mode"] if f and f:formvalue(section) then @@ -324,6 +330,12 @@ if api.is_finded("smartdns") then o:value("xray", "Xray") end o:depends({ dns_shunt = "smartdns", _node_sel_other = "1" }) + o.write = function(self, section, value) + if value == "socks" then + m:del(section, "v2ray_dns_mode") + end + return ListValue.write(self, section, value) + end o.remove = function(self, section) local f = s.fields["dns_mode"] if f and f:formvalue(section) then diff --git a/luci-app-passwall/luasrc/passwall/util_sing-box.lua b/luci-app-passwall/luasrc/passwall/util_sing-box.lua index 1f7d8322..06c3ec07 100644 --- a/luci-app-passwall/luasrc/passwall/util_sing-box.lua +++ b/luci-app-passwall/luasrc/passwall/util_sing-box.lua @@ -226,7 +226,7 @@ function gen_outbound(flag, node, tag, proxy_table) enabled = true, disable_sni = (node.tls_disable_sni == "1") and true or false, --不要在 ClientHello 中发送服务器名称. server_name = node.tls_serverName, --用于验证返回证书上的主机名,除非设置不安全。它还包含在 ClientHello 中以支持虚拟主机,除非它是 IP 地址。 - insecure = (node.tls_allowInsecure == "1") and true or false, --接受任何服务器证书。 + insecure = node.tls_allowInsecure == "1" or (node.tls_pinSHA256 and node.tls_pinSHA256 ~= ""), --接受任何服务器证书。(兼顾 xray 的 pinnedPeerCertSha256 ) alpn = alpn, --支持的应用层协议协商列表,按优先顺序排列。如果两个对等点都支持 ALPN,则选择的协议将是此列表中的一个,如果没有相互支持的协议则连接将失败。 --min_version = "1.2", --max_version = "1.3", diff --git a/luci-theme-lightblue/htdocs/luci-static/lightblue/cascade.css b/luci-theme-lightblue/htdocs/luci-static/lightblue/cascade.css index ca196f36..e7ff5dbd 100644 --- a/luci-theme-lightblue/htdocs/luci-static/lightblue/cascade.css +++ b/luci-theme-lightblue/htdocs/luci-static/lightblue/cascade.css @@ -2091,7 +2091,7 @@ table table td, } .cbi-value-description { - background-image: url(/luci-static/resources/cbi/help.gif); + background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNicgaGVpZ2h0PScxNicgdmlld0JveD0nMCAwIDE2IDE2Jz48Y2lyY2xlIGN4PSc4JyBjeT0nOCcgcj0nNy41JyBmaWxsPScjNGI5Y2QxJyBzdHJva2U9JyMyYjczYjUnLz48dGV4dCB4PSc4JyB5PScxMicgZm9udC1zaXplPScxMScgZm9udC1mYW1pbHk9J3NhbnMtc2VyaWYnIGZvbnQtd2VpZ2h0PSdib2xkJyB0ZXh0LWFuY2hvcj0nbWlkZGxlJyBmaWxsPScjZmZmJz4/PC90ZXh0Pjwvc3ZnPg=="); background-position: .25em .2em; background-repeat: no-repeat; margin: .25em 0 0 0; diff --git a/luci-theme-merona/htdocs/luci-static/merona/cascade.css b/luci-theme-merona/htdocs/luci-static/merona/cascade.css index ea9f81a7..ee26c929 100644 --- a/luci-theme-merona/htdocs/luci-static/merona/cascade.css +++ b/luci-theme-merona/htdocs/luci-static/merona/cascade.css @@ -2091,7 +2091,7 @@ table table td, } .cbi-value-description { - background-image: url(/luci-static/resources/cbi/help.gif); + background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNicgaGVpZ2h0PScxNicgdmlld0JveD0nMCAwIDE2IDE2Jz48Y2lyY2xlIGN4PSc4JyBjeT0nOCcgcj0nNy41JyBmaWxsPScjZThmNWU5JyBzdHJva2U9JyMzODhlM2MnIHN0cm9rZS13aWR0aD0nMS4yJy8+PHRleHQgeD0nOCcgeT0nMTInIGZvbnQtc2l6ZT0nMTEnIGZvbnQtZmFtaWx5PSdzYW5zLXNlcmlmJyBmb250LXdlaWdodD0nYm9sZCcgdGV4dC1hbmNob3I9J21pZGRsZScgZmlsbD0nIzJlN2QzMic+PzwvdGV4dD48L3N2Zz4="); background-position: .25em .2em; background-repeat: no-repeat; margin: .25em 0 0 0; diff --git a/luci-theme-teleofis/htdocs/luci-static/teleofis/cascade.css b/luci-theme-teleofis/htdocs/luci-static/teleofis/cascade.css index 691ffc5c..b0b1144d 100644 --- a/luci-theme-teleofis/htdocs/luci-static/teleofis/cascade.css +++ b/luci-theme-teleofis/htdocs/luci-static/teleofis/cascade.css @@ -2059,7 +2059,7 @@ table table td, } .cbi-value-description { - background-image: url(/luci-static/resources/cbi/help.gif); + background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNicgaGVpZ2h0PScxNicgdmlld0JveD0nMCAwIDE2IDE2Jz48Y2lyY2xlIGN4PSc4JyBjeT0nOCcgcj0nNy41JyBmaWxsPScjZDI0OTJkJyBzdHJva2U9JyNiMDMwMjAnLz48dGV4dCB4PSc4JyB5PScxMicgZm9udC1zaXplPScxMScgZm9udC1mYW1pbHk9J3NhbnMtc2VyaWYnIGZvbnQtd2VpZ2h0PSdib2xkJyB0ZXh0LWFuY2hvcj0nbWlkZGxlJyBmaWxsPScjZmZmJz4/PC90ZXh0Pjwvc3ZnPg=="); background-position: .25em .2em; background-repeat: no-repeat; margin: .25em 0 0 0; diff --git a/mptcp/Makefile b/mptcp/Makefile index c951184d..ff1aadd4 100644 --- a/mptcp/Makefile +++ b/mptcp/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mptcp PKG_VERSION:=6.1 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_MAINTAINER:=Ycarus (Yannick Chabanois) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) diff --git a/mptcp/files/etc/init.d/mptcp b/mptcp/files/etc/init.d/mptcp index fa8874b0..560c8ede 100755 --- a/mptcp/files/etc/init.d/mptcp +++ b/mptcp/files/etc/init.d/mptcp @@ -137,7 +137,7 @@ interface_max_metric() { } interface_multipath_settings() { - local mode iface proto metric ip4table + local mode iface proto metric ip4table qdisc local config="$1" local intf="$2" local enabled uci_route @@ -151,6 +151,7 @@ interface_multipath_settings() { config_get enabled "$config" auto "1" config_get txqueuelen "$config" txqueuelen + config_get qdisc "$config" qdisc case "$iface" in *@*) iface=$(ifstatus "$config" | jsonfilter -q -e '@["device"]') ;; esac if [ "$(uci -q get openmptcprouter.${config}.metric)" = "" ] || [ "$(uci -q get openmptcprouter.${config}.metric)" = "1" ]; then count=$((count+1)) @@ -365,6 +366,7 @@ interface_multipath_settings() { #ifconfig $iface txqueuelen 1000 > /dev/null 2>&1 ip link set dev $iface txqueuelen 1000 > /dev/null 2>&1 fi + tc qdisc replace dev $iface root ${qdisc:-fq} > /dev/null 2>&1 fi if [ -z "$gateway" ] && [ -n "$network" ]; then if [ "$uci_route" = "1" ]; then @@ -400,6 +402,7 @@ interface_multipath_settings() { #ifconfig $iface txqueuelen 1000 > /dev/null 2>&1 ip link set dev $iface txqueuelen 1000 > /dev/null 2>&1 fi + tc qdisc replace dev $iface root ${qdisc:-fq} > /dev/null 2>&1 fi if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "1" ] && [ "$config" != "omr6in4" ]; then # IPv6 Updates: