diff --git a/luci-app-xray/core/Makefile b/luci-app-xray/core/Makefile index 2da6dc3cb..77ea65a0f 100644 --- a/luci-app-xray/core/Makefile +++ b/luci-app-xray/core/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-xray -PKG_VERSION:=3.0.3 +PKG_VERSION:=3.0.4 PKG_RELEASE:=1 PKG_LICENSE:=MPLv2 diff --git a/luci-app-xray/core/root/usr/share/xray/dnsmasq_include.ut b/luci-app-xray/core/root/usr/share/xray/dnsmasq_include.ut index 13cc62ea7..e6728f847 100644 --- a/luci-app-xray/core/root/usr/share/xray/dnsmasq_include.ut +++ b/luci-app-xray/core/root/usr/share/xray/dnsmasq_include.ut @@ -4,13 +4,13 @@ import { load_config } from "./common/config.mjs"; const config = load_config(); const general = config[filter(keys(config), k => config[k][".type"] == "general")[0]]; - const dns_port = int(general["dns_port"]); - const dns_count = int(general["dns_count"] || 0); + const dns_port = int(general["dns_port"] || 5300); + const dns_count = int(general["dns_count"] || 3); const manual_tproxy = filter(keys(config), k => config[k][".type"] == "manual_tproxy") || []; %} # Generated dnsmasq configurations by luci-app-xray strict-order -server=/#/127.0.0.1#{{ general.dns_port }} +server=/#/127.0.0.1#{{ dns_port }} {% for (let i = dns_port; i <= dns_port + dns_count; i++): %} server=127.0.0.1#{{ i }} {% endfor %}