[PATCH] tentative fix for making gateway optional
Clauz
clauz at ninux.org
Thu Aug 2 15:24:00 CEST 2012
---
package/ubnt-web/src/ubnt.cfg.js | 5 -----
1 file changed, 5 deletions(-)
diff --git a/package/ubnt-web/src/ubnt.cfg.js b/package/ubnt-web/src/ubnt.cfg.js
index c718620..de1d4b8 100644
--- a/package/ubnt-web/src/ubnt.cfg.js
+++ b/package/ubnt-web/src/ubnt.cfg.js
@@ -490,11 +490,6 @@
else if (!_validateNetmask(this.netmask))
err.push('Netmask is invalid.');
- if (!this.gateway.length)
- err.push('Gateway IP can not be empty.');
- else if (!_validateNonZeroIP(this.gateway))
- err.push('Gateway IP is invalid.');
-
if (err.length > 0) /* makes no sense to check more */
return false;
--
1.7.11.3
--------------050801080802050509070400--
More information about the Wireless
mailing list