1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Lowercase is better for glorytun proto

This commit is contained in:
Ycarus 2018-02-07 15:20:38 +01:00
parent 9eb89a6a14
commit 7e48285cb4
6 changed files with 10 additions and 10 deletions

View file

@ -16,7 +16,7 @@ local basicParams = {
{ Value,"localip","192.168.99.2", translate("Local tunnel ip address") },
{ Value,"remoteip","192.168.99.1", translate("Remote tunnel ip address") },
{ Value,"key","secretkey", translate("The secret key") },
{ ListValue,"proto",{ "TCP", "UDP" }, translate("Protocol") },
{ ListValue,"proto",{ "tcp", "udp" }, translate("Protocol") },
{ Flag,"listener",0, translate("Server mode") },
{ Value,"bind","", translate("Bind address") },

View file

@ -115,7 +115,7 @@ end
local proto = s:option( DummyValue, "proto", translate("Protocol") )
function proto.cfgvalue(self, section)
local val = AbstractValue.cfgvalue(self, section)
return val or "TCP"
return val or "tcp"
end
function updown.write(self, section, value)
@ -126,7 +126,7 @@ function updown.write(self, section, value)
end
else
local type = proto.cfgvalue(self,section)
if type == 'UDP' then
if type == 'udp' then
luci.sys.call("/etc/init.d/glorytun-udp start %s" % section)
else
luci.sys.call("/etc/init.d/glorytun start %s" % section)