![glype 代理脚本与 squid 优化网络交付](https://linux22.com/image/658109/glype%20%E4%BB%A3%E7%90%86%E8%84%9A%E6%9C%AC%E4%B8%8E%20squid%20%E4%BC%98%E5%8C%96%E7%BD%91%E7%BB%9C%E4%BA%A4%E4%BB%98.png)
我正在尝试利用squid:优化 Web 交付和Glype® 代理脚本。
include/init.php
(Custom browser - set up defaults
):
if ( ! isset($_SESSION['custom_browser']) ) {
$_SESSION['custom_browser'] = array(
'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '',
'referrer' => 'real',
'tunnel' => '127.0.0.1',
'tunnel_port' => '3128',
'tunnel_type' => 'http',
);
}
... 但是,即使我停止了 squid,代理仍然有效(tunnel_*
即不是如何设置)。
还有人处理过吗?我绝对记得它之前还正常工作过……
答案1
啊,我确实找到了))
browse.php
(Prepare the REQUEST
)(第 304 行):
$toSet[CURLOPT_PROXYPORT] = 3128;
$toSet[CURLOPT_PROXYTYPE] = "HTTP";
$toSet[CURLOPT_PROXY] = "127.0.0.1";