소스 검색

Merge pull request #890 from gou4shi1/websocket-client-secure

Fix mg_connect_websocket_client_secure
bel2125 5 년 전
부모
커밋
562d4b744b
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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==";
 	const char *handshake_req;
 
-	int port = client_options->port;
 	const char *host = client_options->host;
 	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 */
 	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) {
 		/* error_buffer already filled */