From a3b1f1630c4d25c32c756f99db5d46b370db966b Mon Sep 17 00:00:00 2001 From: xiaorouji <60100640+xiaorouji@users.noreply.github.com> Date: Sat, 12 Aug 2023 02:24:52 +0800 Subject: [PATCH] luci: fixup 5891a6b --- luci-app-passwall/Makefile | 2 +- luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua | 3 +++ luci-app-passwall/luasrc/passwall/util_xray.lua | 3 +++ luci-app-passwall/root/usr/share/passwall/app.sh | 1 - 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 0cdb1ab43..1d8d11b30 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall -PKG_VERSION:=4.67-3 +PKG_VERSION:=4.67-4 PKG_RELEASE:= PKG_CONFIG_DEPENDS:= \ 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 02e6ac075..8226237cb 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua @@ -183,6 +183,9 @@ if (has_v2ray or has_xray) and #nodes_table > 0 then for k1, v1 in pairs(balancing_list) do o:value(v1.id, v1.remark) end + for k1, v1 in pairs(iface_list) do + o:value(v1.id, v1.remark) + end for k1, v1 in pairs(normal_list) do o:value(v1.id, v1.remark) end diff --git a/luci-app-passwall/luasrc/passwall/util_xray.lua b/luci-app-passwall/luasrc/passwall/util_xray.lua index a755601ea..fbfa4033a 100644 --- a/luci-app-passwall/luasrc/passwall/util_xray.lua +++ b/luci-app-passwall/luasrc/passwall/util_xray.lua @@ -373,6 +373,7 @@ function gen_config_server(node) tag = "outbound", streamSettings = { sockopt = { + mark = 255, interface = node.outbound_node_iface } } @@ -819,6 +820,7 @@ function gen_config(var) tag = rule_name, streamSettings = { sockopt = { + mark = 255, interface = _node.iface } } @@ -920,6 +922,7 @@ function gen_config(var) tag = "outbound", streamSettings = { sockopt = { + mark = 255, interface = node.iface } } diff --git a/luci-app-passwall/root/usr/share/passwall/app.sh b/luci-app-passwall/root/usr/share/passwall/app.sh index 5fc14780e..33052ab76 100755 --- a/luci-app-passwall/root/usr/share/passwall/app.sh +++ b/luci-app-passwall/root/usr/share/passwall/app.sh @@ -25,7 +25,6 @@ DNS_PORT=15353 TUN_DNS="127.0.0.1#${DNS_PORT}" LOCAL_DNS=119.29.29.29,223.5.5.5 DEFAULT_DNS= -IFACES= ENABLED_DEFAULT_ACL=0 PROXY_IPV6=0 PROXY_IPV6_UDP=0