From cd6f5ccebd0ea6ba01b28f8c1a10be74a3ad53e0 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 30 Mar 2023 10:19:48 +0200 Subject: [PATCH] improve wording of internal ip in case of reverse proxy situation Signed-off-by: Simon L --- php/src/Data/ConfigurationManager.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index 1c257946..20bb1266 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -268,11 +268,10 @@ class ConfigurationManager $port = $this->GetApachePort(); if (!filter_var($dnsRecordIP, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) { - $errorMessage = "It seems like the ip-address is set to an internal or reserved ip-address. This is not supported. (It was found to be set to '" . $dnsRecordIP . "')"; if ($port === '443') { - throw new InvalidSettingConfigurationException($errorMessage); + throw new InvalidSettingConfigurationException("It seems like the ip-address is set to an internal or reserved ip-address. This is not supported. (It was found to be set to '" . $dnsRecordIP . "')"); } else { - error_log($errorMessage); + error_log("It seems like the ip-address of " . $domain . " is set to an internal or reserved ip-address. (It was found to be set to '" . $dnsRecordIP . "')"); } }