Update proxytest.php

This commit is contained in:
Namhyeon Go 2022-10-06 11:39:40 +09:00 committed by GitHub
parent 6c5d1d5877
commit 47247cf403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,9 @@ $scheme = $data['scheme'];
$hostname = $data['server'];
if ($scheme == "https") {
$hostname = sprintf("tls://%s:%s", $hostname, $port);
$hostname = sprintf("ssl://%s", $hostname);
}
$fp = fsockopen($hostname, $port, $errno, $errstr, 1);
if (!$fp) {