diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index fcaad2ee..a1c19a85 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1866,8 +1866,8 @@ function domain_blocking_add { blocked_domain=$(<$data) if [ ${#blocked_domain} -gt 2 ]; then if [[ "${blocked_domain}" == *'.'* ]]; then + firewall_block_domain $blocked_domain if [[ "${blocked_domain}" != *'@'* ]]; then - firewall_block_domain $blocked_domain dialog --title $"Block a domain" \ --msgbox $"The domain $blocked_domain has been blocked" 6 40 else @@ -1892,8 +1892,8 @@ function domain_blocking_remove { unblocked_domain=$(<$data) if [ ${#unblocked_domain} -gt 2 ]; then if [[ "${unblocked_domain}" == *'.'* ]]; then + firewall_unblock_domain $unblocked_domain if [[ "${unblocked_domain}" != *'@'* ]]; then - firewall_unblock_domain $unblocked_domain dialog --title $"Unblock a domain" \ --msgbox $"The domain $unblocked_domain has been unblocked" 6 40 else