mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-05 17:31:03 +00:00
Update proxytest.php
This commit is contained in:
parent
6c5d1d5877
commit
47247cf403
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user