check.php: fix HTTPS_PORT migration to config.ini
This commit is contained in:
parent
eb3a331a2e
commit
4217602b46
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue