mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
luci-proto-3g/ppp/pppossh: fix default keepalive values
Signed-off-by: Rany Hany <rany_hany@riseup.net>
This commit is contained in:
@@ -128,7 +128,7 @@ return network.registerProtocol('3g', {
|
|||||||
o.datatype = 'min(1)';
|
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 = 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.datatype = 'uinteger';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = 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 = 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.datatype = 'min(1)';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = write_keepalive;
|
o.remove = write_keepalive;
|
||||||
|
|||||||
@@ -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 = 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.datatype = 'uinteger';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = 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 = 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.datatype = 'min(1)';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = write_keepalive;
|
o.remove = write_keepalive;
|
||||||
|
|||||||
@@ -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 = 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.datatype = 'uinteger';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = 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 = 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.datatype = 'min(1)';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = write_keepalive;
|
o.remove = write_keepalive;
|
||||||
|
|||||||
@@ -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 = 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.datatype = 'uinteger';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = 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 = 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.datatype = 'min(1)';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = write_keepalive;
|
o.remove = write_keepalive;
|
||||||
|
|||||||
@@ -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 = 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.datatype = 'uinteger';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = 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 = 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.datatype = 'min(1)';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = write_keepalive;
|
o.remove = write_keepalive;
|
||||||
|
|||||||
@@ -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 = 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.datatype = 'uinteger';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = 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 = 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.datatype = 'min(1)';
|
||||||
o.write = write_keepalive;
|
o.write = write_keepalive;
|
||||||
o.remove = write_keepalive;
|
o.remove = write_keepalive;
|
||||||
|
|||||||
Reference in New Issue
Block a user