From 446375c3af14d4132a496ac9f64451df099ba44e Mon Sep 17 00:00:00 2001 From: Sense <35366387+sensec@users.noreply.github.com> Date: Tue, 23 Jan 2018 00:13:51 +0800 Subject: [PATCH] bug fix --- Makefile | 2 +- files/luci/model/cbi/udp2raw/servers-details.lua | 4 ---- files/root/etc/uci-defaults/luci-udp2raw | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 66541e1..ea87723 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-udp2raw PKG_VERSION:=1.0.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPLv3 PKG_LICENSE_FILES:=LICENSE diff --git a/files/luci/model/cbi/udp2raw/servers-details.lua b/files/luci/model/cbi/udp2raw/servers-details.lua index ba961d1..de23b08 100644 --- a/files/luci/model/cbi/udp2raw/servers-details.lua +++ b/files/luci/model/cbi/udp2raw/servers-details.lua @@ -68,13 +68,9 @@ for _, v in ipairs(auth_modes) do o:value(v, v:lower()) end o.default = "md5" o = s:option(Flag, "auto_rule", translate("Auto Rule"), translate("Auto add (and delete) iptables rule.")) -o.enabled = "1" -o.disabled = "0" o.default = "1" o = s:option(Flag, "keep_rule", translate("Keep Rule"), translate("Monitor iptables and auto re-add if necessary.")) -o.enabled = "1" -o.disabled = "0" o:depends("auto_rule", "1") o = s:option(Value, "seq_mode", translate("seq Mode"), translate("seq increase mode for faketcp.")) diff --git a/files/root/etc/uci-defaults/luci-udp2raw b/files/root/etc/uci-defaults/luci-udp2raw index 346240c..c7c4dd1 100644 --- a/files/root/etc/uci-defaults/luci-udp2raw +++ b/files/root/etc/uci-defaults/luci-udp2raw @@ -20,7 +20,7 @@ fi if [ "$general"x != "general"x ]; then uci -q batch <<-EOF > /dev/null rename udp2raw.@general[-1]="general" - set udp2raw.general.server="nil" + set udp2raw.@general[-1].server="nil" commit udp2raw EOF fi