winhttp: Connect to the proxy port rather than the host port.
This commit is contained in:
parent
6fad52bd14
commit
85579ebb4c
|
@ -768,7 +768,7 @@ static BOOL open_connection( request_t *request )
|
|||
if (netconn_connected( &request->netconn )) return TRUE;
|
||||
|
||||
connect = request->connect;
|
||||
port = connect->hostport ? connect->hostport : (request->hdr.flags & WINHTTP_FLAG_SECURE ? 443 : 80);
|
||||
port = connect->serverport ? connect->serverport : (request->hdr.flags & WINHTTP_FLAG_SECURE ? 443 : 80);
|
||||
|
||||
send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_RESOLVING_NAME, connect->servername, strlenW(connect->servername) + 1 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue