summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/system_routes_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php
index 4176136..cd85c4e 100755
--- a/usr/local/www/system_routes_edit.php
+++ b/usr/local/www/system_routes_edit.php
@@ -126,9 +126,9 @@ if ($_POST) {
} elseif (is_alias($_POST['network'])) {
$osn = $_POST['network'];
foreach (filter_expand_alias_array($_POST['network']) as $tgt) {
- if (is_ipaddr($tgt))
+ if (is_ipaddrv4($tgt))
$tgt .= "/32";
- if (is_ipaddr($tgt))
+ if (is_ipaddrv6($tgt))
$tgt .= "/128";
if (!is_subnet($tgt))
continue;
OpenPOWER on IntegriCloud