在discuz目录里找到uc_client/client.php
1.235行
$path = $matches['path'] ? $matches['path'].($matches['query'] ? '?'.$matches['query'] : '') : '/';
下面添加以下代码:
$matches['port'] = !empty($matches['port'])&&$scheme=='https' ? $matches['port'] : 443;
2.261行
if(!$fp = @fsocketopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout)) {
这一行修改为:
if($port=='443'){
$temp = 'ssl://';
}else{
$temp = 'http://';
}
if(!$fp = @fsocketopen($temp.($ip ? $ip : $host), $port, $errno, $errstr, $timeout)) {
|