mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2023-10-02 00:21:36
This commit is contained in:
parent
7d5f6b5380
commit
e3264f7e4b
@ -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
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user