提交 d04e02cd 编写于 作者: H heyanlong

default port

上级 80f3352b
......@@ -157,10 +157,14 @@ void sky_curl_exec_handler(INTERNAL_FUNCTION_PARAMETERS)
if(url_info->port){
peer_port = url_info->port;
}
if(peer_port > 0){
if (peer_port > 0) {
sprintf(peer, "%s:%d", url_info->host, peer_port);
}else{
sprintf(peer, "%s", url_info->host);
} else {
if (strcasecmp("http", url_info->scheme) == 0) {
sprintf(peer, "%s:%d", url_info->host, 80);
} else {
sprintf(peer, "%s:%d", url_info->host, 443);
}
}
if (url_info->query) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册