Jelajahi Sumber

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

Fix mg_connect_websocket_client_secure
bel2125 5 tahun lalu
induk
melakukan
562d4b744b
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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 */