From 61eb7b54a2d4422c38df364c7b7535156b27ec52 Mon Sep 17 00:00:00 2001 From: action Date: Thu, 18 Jun 2026 22:56:52 +0800 Subject: [PATCH] update 2026-06-18 22:56:52 --- luci-app-passwall2/luasrc/passwall2/util_xray.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-passwall2/luasrc/passwall2/util_xray.lua b/luci-app-passwall2/luasrc/passwall2/util_xray.lua index bf6f6e89..8702176e 100644 --- a/luci-app-passwall2/luasrc/passwall2/util_xray.lua +++ b/luci-app-passwall2/luasrc/passwall2/util_xray.lua @@ -1836,7 +1836,7 @@ function gen_config(var) end end end - if dns_outbound and #dns_out_rules > 0 then + if dns_outbound and dns_outbound.settings.rules and #dns_out_rules > 0 then for i = #dns_out_rules, 1, -1 do table.insert(dns_outbound.settings.rules, 1, dns_out_rules[i]) end