From f3f3d49fabfa85ee0ef53b8dbc786f9d41afaa68 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Wed, 7 Feb 2018 19:29:56 +0100 Subject: [PATCH] Add enable option for glorytun --- luci-app-glorytun/luasrc/model/cbi/glorytun-settings.lua | 1 + luci-app-glorytun/root/etc/config/glorytun_recipes | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/luci-app-glorytun/luasrc/model/cbi/glorytun-settings.lua b/luci-app-glorytun/luasrc/model/cbi/glorytun-settings.lua index d905905c9..1053790fc 100644 --- a/luci-app-glorytun/luasrc/model/cbi/glorytun-settings.lua +++ b/luci-app-glorytun/luasrc/model/cbi/glorytun-settings.lua @@ -10,6 +10,7 @@ local basicParams = { -- Widget, Name, Default(s), Description -- + { Flag,"enable",0, translate("Enable") }, { Value,"port",65001, translate("TCP port # for both local and remote") }, { Value,"dev","tun0", translate("Interface name") }, { Value,"host","vpnserver.example.org", translate("Remote host name or ip address") }, diff --git a/luci-app-glorytun/root/etc/config/glorytun_recipes b/luci-app-glorytun/root/etc/config/glorytun_recipes index 919acc2a8..049c34c04 100644 --- a/luci-app-glorytun/root/etc/config/glorytun_recipes +++ b/luci-app-glorytun/root/etc/config/glorytun_recipes @@ -8,6 +8,7 @@ config glorytun_recipe servertcp option localip "192.168.99.1" option remoteip "192.168.99.2" option proto "tcp" + option enable "0" config glorytun_recipe clienttcp option _description "Simple TCP client configuration" @@ -19,6 +20,7 @@ config glorytun_recipe clienttcp option localip "192.168.99.2" option remoteip "192.168.99.1" option proto "tcp" + option enable "0" config glorytun_recipe serverudp option _description "Simple UDP server configuration" @@ -31,6 +33,7 @@ config glorytun_recipe serverudp option remoteip "192.168.99.2" option proto "udp" option mtuauto "1" + option enable "0" config glorytun_recipe clientudp option _description "Simple UDP client configuration" @@ -43,3 +46,5 @@ config glorytun_recipe clientudp option remoteip "192.168.99.1" option proto "udp" option mtuauto "1" + option enable "0" +