Support Socks5

pull/13/head
AisukaYuki 3 years ago committed by GitHub
parent 21591a59bb
commit 22917da831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -128,6 +128,7 @@ function get_webpage($url,$host="",$ip="") {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
if (SOCKS5_PROXY == 1) { // 指定socks5
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt($ch, CURLOPT_PROXY, SOCKS5_PROXY_IP);
}
if (IP_RESOLVE == 1) { // 指定ip回源

Loading…
Cancel
Save