luci-proto-3g/ppp/pppossh: fix setting of keepalive
authorErik Karlsson <erik.karlsson@iopsys.eu>
Thu, 9 Jan 2025 15:57:57 +0000 (16:57 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 9 Jan 2025 19:51:27 +0000 (20:51 +0100)
commita88d4af4e92bfc7374524c47bd0e53a7d4685a32
treebeb863b5e796100d8f58077109d90884c4ee9574
parent7f6c7271b2581e2261e2f9a004ae389b2c57103c
luci-proto-3g/ppp/pppossh: fix setting of keepalive

Fix regressions from f3d26a2a560d8ae526c617eb1c28821ec900fa7a:

1) It is now possible again to leave the keepalive option empty.

2) It is possible now to set an interval different from 1 without the
   need to explicitly set the failure threshold.

Signed-off-by: Erik Karlsson <erik.karlsson@iopsys.eu>
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