Skip to content

Commit

Permalink
luci-proto-3g/ppp/pppossh: fix default keepalive values
Browse files Browse the repository at this point in the history
Signed-off-by: Rany Hany <[email protected]>
  • Loading branch information
rany2 authored and systemcrash committed Sep 5, 2024
1 parent 929c520 commit 02b58b8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 02b58b8

Please sign in to comment.