summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-08-14 07:57:37 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-08-14 07:57:37 -0300
commitcf96a1a958a60cac4d1187405b9d791cc99adf66 (patch)
tree2b261d7d2762b5914575f3c5ed1f631c283b8a55 /usr/local
parentc6592f21c68cbf4b63bad09ae8850bc953cc1cf3 (diff)
downloadpfsense-cf96a1a958a60cac4d1187405b9d791cc99adf66.zip
pfsense-cf96a1a958a60cac4d1187405b9d791cc99adf66.tar.gz
Make sure an alias is not used by a static route before delete, ticket #2941
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_aliases.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_aliases.php b/usr/local/www/firewall_aliases.php
index db4c58a..fc69093 100755
--- a/usr/local/www/firewall_aliases.php
+++ b/usr/local/www/firewall_aliases.php
@@ -102,6 +102,8 @@ if ($_GET['act'] == "del") {
// Load Balancer
find_alias_reference(array('load_balancer', 'lbpool'), array('port'), $alias_name, $is_alias_referenced, $referenced_by);
find_alias_reference(array('load_balancer', 'virtual_server'), array('port'), $alias_name, $is_alias_referenced, $referenced_by);
+ // Static routes
+ find_alias_reference(array('staticroutes', 'route'), array('network'), $alias_name, $is_alias_referenced, $referenced_by);
if($is_alias_referenced == true) {
$savemsg = sprintf(gettext("Cannot delete alias. Currently in use by %s"), $referenced_by);
} else {
OpenPOWER on IntegriCloud