luci-proto-ppp: align keepalive defaults with current OpenWrt
authorJo-Philipp Wich <jo@mein.io>
Thu, 30 Aug 2018 13:28:19 +0000 (15:28 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 19 Jul 2019 19:04:34 +0000 (21:04 +0200)
commita388be0f28751707f8b52fc53f3dc94ba2ad9ace
tree40a415a25b4f5da1c23d875a41953094b23e6996
parent35357e4e41a63e235575dd938b175f3ad768aee7
luci-proto-ppp: align keepalive defaults with current OpenWrt

Disabling LCP echos by *not* setting "option keepalive" was broken in
OpenWrt since https://dev.archive.openwrt.org/ticket/2373.html so setting
"0" in LuCI had the effect of reverting back to "5, 1" while the help
suggested otherwise.

Support for "keepalive 0" was fixed with https://git.openwrt.org/555c59230
so align LuCI now to emit "option keepalive 0" instead of removing the
option when entering "0" in the gui.

Fixes #2112
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1b2065d0be7f74cb93fac7f208ee4f28666d3f69)
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppossh.lua
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua