luci-mod-network: allow literal "auto" value for distance
Fixes: #4050 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
c7686d4b3c
commit
01d5d5f929
1 changed files with 1 additions and 1 deletions
|
@ -893,7 +893,7 @@ return view.extend({
|
|||
o.default = o.enabled;
|
||||
|
||||
o = ss.taboption('advanced', form.Value, 'distance', _('Distance Optimization'), _('Distance to farthest network member in meters.'));
|
||||
o.datatype = 'range(0,114750)';
|
||||
o.datatype = 'or(range(0,114750),"auto")';
|
||||
o.placeholder = 'auto';
|
||||
|
||||
o = ss.taboption('advanced', form.Value, 'frag', _('Fragmentation Threshold'));
|
||||
|
|
Loading…
Reference in a new issue