Browse Source

Fix mg_connect_websocket_client_secure

guangqing.chen 5 năm trước cách đây
mục cha
commit
5dc09fc971
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/civetweb.c

+ 1 - 2
src/civetweb.c

@@ -18066,7 +18066,6 @@ mg_connect_websocket_client_impl(const struct mg_client_options *client_options,
 	static const char *magic = "x3JJHMbDL1EzLkh9GBhXDw==";
 	static const char *magic = "x3JJHMbDL1EzLkh9GBhXDw==";
 	const char *handshake_req;
 	const char *handshake_req;
 
 
-	int port = client_options->port;
 	const char *host = client_options->host;
 	const char *host = client_options->host;
 	int i;
 	int i;
 
 
@@ -18096,7 +18095,7 @@ mg_connect_websocket_client_impl(const struct mg_client_options *client_options,
 
 
 	/* Establish the client connection and request upgrade */
 	/* Establish the client connection and request upgrade */
 	conn =
 	conn =
-	    mg_connect_client(host, port, use_ssl, error_buffer, error_buffer_size);
+	    mg_connect_client_impl(client_options, use_ssl, error_buffer, error_buffer_size);
 
 
 	if (conn == NULL) {
 	if (conn == NULL) {
 		/* error_buffer already filled */
 		/* error_buffer already filled */