luci-proto-3g/ppp/pppossh: fix being unable to set keepalive to 0
authorPreport <erdemgezzz@gmail.com>
Thu, 14 Nov 2024 20:07:05 +0000 (23:07 +0300)
committerPaul Donald <newtwen+github@gmail.com>
Sat, 30 Nov 2024 04:16:59 +0000 (05:16 +0100)
commitf3d26a2a560d8ae526c617eb1c28821ec900fa7a
tree740caa70d2a4e711b9d37c99eabd5a32552e0440
parent4024dfa3020868638869316f43968e62697868e1
luci-proto-3g/ppp/pppossh: fix being unable to set keepalive to 0

Since on openwrt keepalive option defaults to "5 1" when it's not
defined:
https://github.com/openwrt/openwrt/blob/6720c4ccba256186bf2f1b1edadb851c447e62a5/package/network/services/ppp/files/ppp.sh#L128

Users must be able to set it to 0 to ignore connection failures.

Signed-off-by: Erdem Gez <perport@perport.net>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
protocols/luci-proto-3g/htdocs/luci-static/resources/protocol/3g.js
protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/ppp.js
protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoa.js
protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoe.js
protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pptp.js
protocols/luci-proto-pppossh/htdocs/luci-static/resources/protocol/pppossh.js