luci-mod-network: fix route6 source autocomplete
Fix the wrong value for the "source" option of the "route6" section.
Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 8b4015036d
)
This commit is contained in:
parent
678ee038c0
commit
d9a228ec4a
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ return view.extend({
|
|||
o = s.taboption('advanced', form.Value, 'source', _('Source Address'));
|
||||
o.placeholder = E('em', _('automatic'));
|
||||
for (var j = 0; j < netdevs.length; j++) {
|
||||
var addrs = netdevs[j].getIPAddrs();
|
||||
var addrs = (i == 4) ? netdevs[j].getIPAddrs() : netdevs[j].getIP6Addrs();
|
||||
for (var k = 0; k < addrs.length; k++)
|
||||
o.value(addrs[k].split('/')[0]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue