From 4217602b46b5f9de8d142507176f6514da776cb5 Mon Sep 17 00:00:00 2001 From: Miraty Date: Fri, 18 Aug 2023 03:10:30 +0200 Subject: [PATCH] check.php: fix HTTPS_PORT migration to config.ini --- jobs/check.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jobs/check.php b/jobs/check.php index 3e17b67..7779db8 100644 --- a/jobs/check.php +++ b/jobs/check.php @@ -3,7 +3,6 @@ require __DIR__ . '/../init.php'; -const HTTPS_PORT = '42443'; const CORE_URL = 'https://' . CONF['common']['public_domains'][0] . ':' . CONF['check']['https_port']; foreach (CONF['reg']['suffixes'] as $suffix => $openness) @@ -278,7 +277,7 @@ exit stopTest(); startTest('subpath site reachability'); - if (curlTest('https://' . CONF['ht']['subpath_domain'] . ':' . HTTPS_PORT . '/' . $ht_subpath . '/') !== TEST_CONTENT) + if (curlTest('https://' . CONF['ht']['subpath_domain'] . ':' . CONF['check']['https_port'] . '/' . $ht_subpath . '/') !== TEST_CONTENT) exit('Unexpected subpath response' . LF); stopTest(); @@ -300,7 +299,7 @@ exit stopTest(); startTest('subdomain site reachability'); - if (curlTest('https://' . $ht_subdomain . '.' . CONF['ht']['subpath_domain'] . ':' . HTTPS_PORT . '/') !== TEST_CONTENT) + if (curlTest('https://' . $ht_subdomain . '.' . CONF['ht']['subpath_domain'] . ':' . CONF['check']['https_port'] . '/') !== TEST_CONTENT) exit('Unexpected subpath response' . LF); stopTest();