diff --git a/luci-app-passwall2/Makefile b/luci-app-passwall2/Makefile index 5a28d90d2..144c3ce2e 100644 --- a/luci-app-passwall2/Makefile +++ b/luci-app-passwall2/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall2 -PKG_VERSION:=1.22-1 +PKG_VERSION:=1.22-2 PKG_RELEASE:= PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall2/luasrc/passwall2/util_sing-box.lua b/luci-app-passwall2/luasrc/passwall2/util_sing-box.lua index 0a5943c90..d110a50ce 100644 --- a/luci-app-passwall2/luasrc/passwall2/util_sing-box.lua +++ b/luci-app-passwall2/luasrc/passwall2/util_sing-box.lua @@ -1260,10 +1260,6 @@ function gen_config(var) remote_strategy = "ipv6_only" end - if remote_dns_detour == "direct" then - default_outTag = "direct" - end - local remote_server = { tag = "remote", address_strategy = "prefer_ipv4", @@ -1272,6 +1268,10 @@ function gen_config(var) detour = default_outTag, } + if remote_dns_detour == "direct" then + remote_server.detour = "direct" + end + if remote_dns_udp_server then local server_port = tonumber(remote_dns_udp_port) or 53 remote_server.address = "udp://" .. remote_dns_udp_server .. ":" .. server_port @@ -1374,7 +1374,7 @@ function gen_config(var) if value.outboundTag ~= "block" and value.outboundTag ~= "direct" then dns_rule.server = "remote" dns_rule.rewrite_ttl = 30 - if value.outboundTag ~= "default" and remote_server.address and remote_server.detour ~= "direct" then + if value.outboundTag ~= "default" and remote_server.address and remote_dns_detour ~= "direct" then local remote_dns_server = api.clone(remote_server) remote_dns_server.tag = value.outboundTag remote_dns_server.detour = value.outboundTag diff --git a/v2ray-geodata/Makefile b/v2ray-geodata/Makefile index b6d0e0068..bee3aa0a5 100644 --- a/v2ray-geodata/Makefile +++ b/v2ray-geodata/Makefile @@ -30,7 +30,7 @@ define Download/geosite HASH:=9f833c47b103fb475a68d3b0f5db99d7b7c31dd9deab9171781420db10751641 endef -GEOSITE_IRAN_VER:=202401061809 +GEOSITE_IRAN_VER:=202401080027 GEOSITE_IRAN_FILE:=iran.dat.$(GEOSITE_IRAN_VER) define Download/geosite-ir URL:=https://github.com/bootmortis/iran-hosted-domains/releases/download/$(GEOSITE_IRAN_VER)/