From 5d4b7e3856c8a5d66abdcf6c4d23bb832b3bd29a Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 25 Sep 2013 17:59:36 +0200 Subject: [PATCH] when removing a ip/port combination, also remove the connections to domains Signed-off-by: Michael Kaufmann (d00p) --- admin_ipsandports.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin_ipsandports.php b/admin_ipsandports.php index 7662510f..6ca8cf8a 100644 --- a/admin_ipsandports.php +++ b/admin_ipsandports.php @@ -102,6 +102,10 @@ if($page == 'ipsandports' && $_POST['send'] == 'send') { $db->query("DELETE FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); + + // also, remove connections to domains (multi-stack) + $db->query("DELETE FROM `".TABLE_DOMAINTOIP."` WHERE `id`='".(int)$id."'"); + $log->logAction(ADM_ACTION, LOG_WARNING, "deleted IP/port '" . $result['ip'] . ":" . $result['port'] . "'"); inserttask('1');