luci-proto-3g/ppp/pppossh: fix default keepalive values
authorRany Hany <redacted>
Fri, 30 Aug 2024 18:48:47 +0000 (18:48 +0000)
committerPaul Donald <redacted>
Thu, 5 Sep 2024 23:28:02 +0000 (01:28 +0200)
Signed-off-by: Rany Hany <redacted>
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

index a1c54984a60bb7d1325fbf858b2346b3e56b73d0..1d599dc822b6daf3dd0dfa0f7e0aa8826e94d969 100644 (file)
@@ -128,7 +128,7 @@ return network.registerProtocol('3g', {
                o.datatype    = 'min(1)';
 
                o = s.taboption('advanced', form.Value, '_keepalive_failure', _('LCP echo failure threshold'), _('Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures'));
-               o.placeholder = '0';
+               o.placeholder = '5';
                o.datatype    = 'uinteger';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
@@ -141,7 +141,7 @@ return network.registerProtocol('3g', {
                };
 
                o = s.taboption('advanced', form.Value, '_keepalive_interval', _('LCP echo interval'), _('Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold'));
-               o.placeholder = '5';
+               o.placeholder = '1';
                o.datatype    = 'min(1)';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
index d97d4bc29b65bea54c180d8e164e0e8be7dbc778..4bd88be5bb271172ddfa0405df51e40529aa2ffe 100644 (file)
@@ -100,7 +100,7 @@ return network.registerProtocol('ppp', {
                }
 
                o = s.taboption('advanced', form.Value, '_keepalive_failure', _('LCP echo failure threshold'), _('Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures'));
-               o.placeholder = '0';
+               o.placeholder = '5';
                o.datatype    = 'uinteger';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
@@ -113,7 +113,7 @@ return network.registerProtocol('ppp', {
                };
 
                o = s.taboption('advanced', form.Value, '_keepalive_interval', _('LCP echo interval'), _('Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold'));
-               o.placeholder = '5';
+               o.placeholder = '1';
                o.datatype    = 'min(1)';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
index 79562994cf72466007879116bb41739b5603a9c9..0a5dc957882a3ce6fabc9f94cda46c2bdd12af6c 100644 (file)
@@ -86,7 +86,7 @@ return network.registerProtocol('pppoa', {
                }
 
                o = s.taboption('advanced', form.Value, '_keepalive_failure', _('LCP echo failure threshold'), _('Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures'));
-               o.placeholder = '0';
+               o.placeholder = '5';
                o.datatype    = 'uinteger';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
@@ -99,7 +99,7 @@ return network.registerProtocol('pppoa', {
                };
 
                o = s.taboption('advanced', form.Value, '_keepalive_interval', _('LCP echo interval'), _('Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold'));
-               o.placeholder = '5';
+               o.placeholder = '1';
                o.datatype    = 'min(1)';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
index 057e17fe81b1906c1e0c2a3d8b5cc460fbde03b0..0a891eb32ecb1a694a9d6c7c3340c3616e52616b 100644 (file)
@@ -60,7 +60,7 @@ return network.registerProtocol('pppoe', {
                }
 
                o = s.taboption('advanced', form.Value, '_keepalive_failure', _('LCP echo failure threshold'), _('Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures'));
-               o.placeholder = '0';
+               o.placeholder = '5';
                o.datatype    = 'uinteger';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
@@ -73,7 +73,7 @@ return network.registerProtocol('pppoe', {
                };
 
                o = s.taboption('advanced', form.Value, '_keepalive_interval', _('LCP echo interval'), _('Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold'));
-               o.placeholder = '5';
+               o.placeholder = '1';
                o.datatype    = 'min(1)';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
index a8d344fbe568c725519ea3faf3f8655cc4a044e4..d8fd67166a829ab5abf48f582659583482d4b8f3 100644 (file)
@@ -73,7 +73,7 @@ return network.registerProtocol('pptp', {
                }
 
                o = s.taboption('advanced', form.Value, '_keepalive_failure', _('LCP echo failure threshold'), _('Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures'));
-               o.placeholder = '0';
+               o.placeholder = '5';
                o.datatype    = 'uinteger';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
@@ -86,7 +86,7 @@ return network.registerProtocol('pptp', {
                };
 
                o = s.taboption('advanced', form.Value, '_keepalive_interval', _('LCP echo interval'), _('Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold'));
-               o.placeholder = '5';
+               o.placeholder = '1';
                o.datatype    = 'min(1)';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
index 52cf481a5e759c5bcc7236d529021cad256672b5..343a56b3ecc2b26a2b39ceee9645ada5f13af931 100644 (file)
@@ -96,7 +96,7 @@ return network.registerProtocol('pppossh', {
                }
 
                o = s.taboption('advanced', form.Value, '_keepalive_failure', _('LCP echo failure threshold'), _('Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures'));
-               o.placeholder = '0';
+               o.placeholder = '5';
                o.datatype    = 'uinteger';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
@@ -109,7 +109,7 @@ return network.registerProtocol('pppossh', {
                };
 
                o = s.taboption('advanced', form.Value, '_keepalive_interval', _('LCP echo interval'), _('Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold'));
-               o.placeholder = '5';
+               o.placeholder = '1';
                o.datatype    = 'min(1)';
                o.write       = write_keepalive;
                o.remove      = write_keepalive;
git clone https://git.99rst.org/PROJECT