diff --git a/net/upnp/src/www/services_upnp.php b/net/upnp/src/www/services_upnp.php index bbd1436e9..3a73b5700 100644 --- a/net/upnp/src/www/services_upnp.php +++ b/net/upnp/src/www/services_upnp.php @@ -39,7 +39,7 @@ function miniupnpd_validate_ip($ip) $ip_array = []; $ip_array = explode('/', $ip); if (count($ip_array) == 2) { - if ($ip_array[1] < 1 || $ip_array[1] > 32) { + if ($ip_array[1] < 0 || $ip_array[1] > 32) { return false; } } elseif (count($ip_array) != 1) {