mirror of https://github.com/aredn/aredn.git
Fix WAN IP check (check was inverted)
This commit is contained in:
parent
af53c47d57
commit
6877cb326f
|
@ -574,7 +574,7 @@ if parms.button_save then
|
||||||
if wan_proto == "static" then
|
if wan_proto == "static" then
|
||||||
if not validate_netmask(wan_mask) then
|
if not validate_netmask(wan_mask) then
|
||||||
err("invalid WAN netmask")
|
err("invalid WAN netmask")
|
||||||
elseif validate_ip_netmask(wan_ip, wan_mask) then
|
elseif not validate_ip_netmask(wan_ip, wan_mask) then
|
||||||
err("invalid WAN IP address")
|
err("invalid WAN IP address")
|
||||||
elseif not (validate_ip_netmask(wan_gw, wan_mask) and validate_same_subnet(wan_ip, wan_gw, wan_mask)) then
|
elseif not (validate_ip_netmask(wan_gw, wan_mask) and validate_same_subnet(wan_ip, wan_gw, wan_mask)) then
|
||||||
err("invalid WAN gateway")
|
err("invalid WAN gateway")
|
||||||
|
|
Loading…
Reference in New Issue