mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix #2679 - DHCP gateway setting
This commit is contained in:
parent
b151a4ec90
commit
8dba67311a
1 changed files with 8 additions and 0 deletions
|
@ -519,6 +519,14 @@ return view.extend({
|
||||||
so.value(ipv4, ipaddrs[ipv4] ? '%s (%s)'.format(ipv4, ipaddrs[ipv4]) : ipv4);
|
so.value(ipv4, ipaddrs[ipv4] ? '%s (%s)'.format(ipv4, ipaddrs[ipv4]) : ipv4);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
so = ss.options(form.value, 'gw', _('Gateway IPv4 Address'));
|
||||||
|
so.rmempty = true;
|
||||||
|
so.datatype = 'or(ip4addr,"ignore")';
|
||||||
|
Object.keys(hosts).forEach(function(mac) {
|
||||||
|
if (hosts[mac].ipv4)
|
||||||
|
so.value(hosts[mac].ipv4);
|
||||||
|
});
|
||||||
|
|
||||||
so = ss.option(form.Value, 'leasetime', _('Lease time'));
|
so = ss.option(form.Value, 'leasetime', _('Lease time'));
|
||||||
so.rmempty = true;
|
so.rmempty = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue