mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
client: fix SOCKS5 compilation
https://github.com/warmcat/libwebsockets/issues/1292
This commit is contained in:
parent
1ea3ef7894
commit
78e6c962f8
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,7 @@ lws_client_socket_service(struct lws *wsi, struct lws_pollfd *pollfd,
|
|||
char *sb = p;
|
||||
int n = 0;
|
||||
#if defined(LWS_WITH_SOCKS5)
|
||||
char conn_mode = 0, pending_timeout = 0;
|
||||
int conn_mode = 0, pending_timeout = 0;
|
||||
#endif
|
||||
|
||||
if ((pollfd->revents & LWS_POLLOUT) &&
|
||||
|
@ -252,6 +252,8 @@ socks_reply_fail:
|
|||
/* clear his proxy connection timeout */
|
||||
lws_set_timeout(wsi, NO_PENDING_TIMEOUT, 0);
|
||||
goto start_ws_handshake;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue