浏览代码

check.php: fix HTTPS_PORT migration to config.ini

Miraty 1 年之前
父节点
当前提交
4217602b46
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      jobs/check.php

+ 2 - 3
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();