修复国家设置,允许不设置任何国家,不做判断
This commit is contained in:
@@ -286,6 +286,10 @@ $cfDomainOut = shell_exec(escapeshellarg(PHP_BINARY) . ' ' . escapeshellarg($roo
|
||||
$cfDomainJson = json_decode((string) $cfDomainOut, true);
|
||||
reg_assert('Cloudflare 域名自动化 Mock 流转', ($cfDomainJson['ok'] ?? false) === true, (string) $cfDomainOut);
|
||||
|
||||
$countryAllowOut = shell_exec(escapeshellarg(PHP_BINARY) . ' ' . escapeshellarg($root . '/tools/verify_country_allowlist.php') . ' 2>/dev/null');
|
||||
$countryAllowJson = json_decode((string) $countryAllowOut, true);
|
||||
reg_assert('国家条件允许列表与 GeoIP 开关', ($countryAllowJson['ok'] ?? false) === true, (string) $countryAllowOut);
|
||||
|
||||
$geoOut = shell_exec(escapeshellarg(PHP_BINARY) . ' ' . escapeshellarg($root . '/tools/verify_geoip.php') . ' 2>/dev/null');
|
||||
$geoJson = json_decode((string) $geoOut, true);
|
||||
if (($geoJson['tests']['db_file_exists'] ?? false) === true) {
|
||||
|
||||
Reference in New Issue
Block a user