From c82dcc1d3bafa91b6b4866f2c65ded717e161a2e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 27 May 2013 07:27:45 -0300 Subject: Permit to use aliases containing hostnames on static routes --- usr/local/www/system_routes_edit.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'usr/local/www/system_routes_edit.php') diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php index a65db4a..ffdfae7 100755 --- a/usr/local/www/system_routes_edit.php +++ b/usr/local/www/system_routes_edit.php @@ -127,15 +127,7 @@ if ($_POST) { } } elseif (is_alias($_POST['network'])) { $osn = $_POST['network']; - $fqdn_found = 0; foreach (preg_split('/\s+/', $aliastable[$osn]) as $tgt) { - if (!is_ipaddr($tgt)) { - if ($fqdn_found === 0) { - $input_errors[] = sprintf(gettext("The alias (%s) has one or more FQDNs configured and cannot be used to configure a static route."), $_POST['network']); - $fqdn_found = 1; - } - continue; - } if (is_ipaddrv4($tgt)) $tgt .= "/32"; if (is_ipaddrv6($tgt)) -- cgit v1.1