mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/upnp: Allow subnet mask 0 in rules
This commit is contained in:
committed by
Franco Fichtner
parent
aedc03cb5c
commit
aea89f6b5e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user