projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
protocols: fix keepalive settings for pppd based protocols
[project/luci.git]
/
protocols
/
luci-proto-ppp
/
luasrc
/
model
/
cbi
/
admin_network
/
proto_pptp.lua
diff --git
a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
index
ea9858e
..
1110409
100644
(file)
--- a/
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
+++ b/
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
@@
-69,9
+69,6
@@
function keepalive_failure.cfgvalue(self, section)
end
end
end
end
-function keepalive_failure.write() end
-function keepalive_failure.remove() end
-
keepalive_failure.placeholder = "0"
keepalive_failure.datatype = "uinteger"
keepalive_failure.placeholder = "0"
keepalive_failure.datatype = "uinteger"
@@
-99,6
+96,8
@@
function keepalive_interval.write(self, section, value)
end
keepalive_interval.remove = keepalive_interval.write
end
keepalive_interval.remove = keepalive_interval.write
+keepalive_failure.write = keepalive_interval.write
+keepalive_failure.remove = keepalive_interval.write
keepalive_interval.placeholder = "5"
keepalive_interval.datatype = "min(1)"
keepalive_interval.placeholder = "5"
keepalive_interval.datatype = "min(1)"