diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-05-27 07:27:45 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-05-27 07:27:45 -0300 |
commit | c82dcc1d3bafa91b6b4866f2c65ded717e161a2e (patch) | |
tree | b489e84b75f71d7a610ca84513fbedc6759416a2 /usr/local/www/system_routes_edit.php | |
parent | 356e86d415b4699f6994db7ff683294d8cc9d1a0 (diff) | |
download | pfsense-c82dcc1d3bafa91b6b4866f2c65ded717e161a2e.zip pfsense-c82dcc1d3bafa91b6b4866f2c65ded717e161a2e.tar.gz |
Permit to use aliases containing hostnames on static routes
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-x | usr/local/www/system_routes_edit.php | 8 |
1 files changed, 0 insertions, 8 deletions
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)) |