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:
01cd04f
)
modules/admin-full: fix "undefined" netmask display on main status page
author
Jo-Philipp Wich
<redacted>
Sun, 31 Jul 2011 12:37:22 +0000
(12:37 +0000)
committer
Jo-Philipp Wich
<redacted>
Sun, 31 Jul 2011 12:37:22 +0000
(12:37 +0000)
modules/admin-full/luasrc/view/admin_status/index.htm
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/view/admin_status/index.htm
b/modules/admin-full/luasrc/view/admin_status/index.htm
index 16cd32a2c11795598d16fcc53fef87b5ac316c85..aab8ead99c0d5a87d799ba1261cac63d050a9752 100644
(file)
--- a/
modules/admin-full/luasrc/view/admin_status/index.htm
+++ b/
modules/admin-full/luasrc/view/admin_status/index.htm
@@
-140,7
+140,7
@@
$Id$
'<strong><%:Gateway%>: </strong>%s<br />',
ifc.proto,
(ifc.ipaddr) ? ifc.ipaddr : '0.0.0.0',
- (ifc.netmask != ifc.ipaddr) ? ifc.netmask : '255.255.255.255',
+ (ifc.netmask
&& ifc.netmask
!= ifc.ipaddr) ? ifc.netmask : '255.255.255.255',
(ifc.gwaddr) ? ifc.gwaddr : '0.0.0.0'
);
git clone https://git.99rst.org/PROJECT