git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
ff52c0e
)
luci-base: handle default protocol for UCI interfaces
author
Erik Karlsson
<redacted>
Wed, 8 Jan 2025 11:22:44 +0000
(12:22 +0100)
committer
Paul Donald
<redacted>
Wed, 22 Jan 2025 14:49:14 +0000
(15:49 +0100)
The protocol defaults to 'none' in netifd if unspecified.
Signed-off-by: Erik Karlsson <redacted>
modules/luci-base/htdocs/luci-static/resources/network.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/network.js
b/modules/luci-base/htdocs/luci-static/resources/network.js
index d71aa69fa361436d6018c708c1aff68cc559b915..394dffc3f535900e62c15eeac3f475500700bda0 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/network.js
@@
-1655,7
+1655,7
@@
Network = baseclass.extend(/** @lends LuCI.network.prototype */ {
if (name == null)
return null;
- proto = (proto == null ?
uci.get('network', name, 'proto
') : proto);
+ proto = (proto == null ?
(uci.get('network', name, 'proto') || 'none
') : proto);
var protoClass = _protocols[proto] || Protocol;
return new protoClass(name);
git clone https://git.99rst.org/PROJECT