Fix WAN IP check (check was inverted)

This commit is contained in:
Tim Wilkinson 2022-03-01 22:19:02 -08:00 committed by Joe AE6XE
parent af53c47d57
commit 6877cb326f
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ if parms.button_save then
if wan_proto == "static" then
if not validate_netmask(wan_mask) then
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")
elseif not (validate_ip_netmask(wan_gw, wan_mask) and validate_same_subnet(wan_ip, wan_gw, wan_mask)) then
err("invalid WAN gateway")