update 2023-10-02 00:21:36

This commit is contained in:
github-actions[bot] 2023-10-02 00:21:36 +08:00
parent 7d5f6b5380
commit e3264f7e4b
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 %}