From 47247cf4037f26426a1a30fbd45b81ed45028662 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 6 Oct 2022 11:39:40 +0900 Subject: [PATCH] Update proxytest.php --- proxytest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxytest.php b/proxytest.php index 04ce95f..5ea7b4c 100644 --- a/proxytest.php +++ b/proxytest.php @@ -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) {