From: Jo-Philipp Wich Date: Thu, 28 Apr 2022 10:08:37 +0000 (+0200) Subject: luci-mod-network: routes: allow prefixes as route source X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=904c174cafe46a6414058d242df279c09e23be29;p=openwrt-luci.git luci-mod-network: routes: allow prefixes as route source Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js index b1939e264a..da1330aec8 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js @@ -98,7 +98,7 @@ return view.extend({ o = s.taboption('advanced', form.Value, 'source', _('Source'), _('Specifies the preferred source address when sending to destinations covered by the target')); o.modalonly = true; - o.datatype = (family == 6) ? 'ip6addr("nomask")' : 'ip4addr("nomask")'; + o.datatype = (family == 6) ? 'ip6addr' : 'ip4addr'; o.placeholder = E('em', _('auto')); for (var i = 0; i < netDevs.length; i++) { var addrs = (family == 6) ? netDevs[i].getIP6Addrs() : netDevs[i].getIPAddrs();