diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-08-14 07:57:37 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-08-14 07:57:37 -0300 |
commit | cf96a1a958a60cac4d1187405b9d791cc99adf66 (patch) | |
tree | 2b261d7d2762b5914575f3c5ed1f631c283b8a55 /usr/local | |
parent | c6592f21c68cbf4b63bad09ae8850bc953cc1cf3 (diff) | |
download | pfsense-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-x | usr/local/www/firewall_aliases.php | 2 |
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 { |