From 8e38adf2f66cab069780b4f0127ff60e798046e0 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 20 May 2021 11:35:01 +0200 Subject: [PATCH] [Web] Fix transport check for IPv6 addresses, thanks to marekschneider --- data/web/inc/ajax/transport_check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/ajax/transport_check.php b/data/web/inc/ajax/transport_check.php index 972bdc02..aa429edf 100644 --- a/data/web/inc/ajax/transport_check.php +++ b/data/web/inc/ajax/transport_check.php @@ -42,7 +42,7 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi $port = substr($hostname_w_port, strrpos($hostname_w_port, ':') + 1); $hostname = preg_replace('/'. preg_quote(':' . $port, '/') . '$/', '', $hostname_w_port); if (filter_var($hostname, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) { - $hostname = '[' . $hostname . ']:'; + $hostname = '[' . $hostname . ']'; } } else {