Ver código fonte

Ports are already assigned

bel 10 anos atrás
pai
commit
01aeee05b3
1 arquivos alterados com 0 adições e 2 exclusões
  1. 0 2
      src/civetweb.c

+ 0 - 2
src/civetweb.c

@@ -4973,7 +4973,6 @@ static int connect_socket(struct mg_context *ctx /* may be null */,
 	if ((ip_ver == 4) &&
 	    (connect(*sock, (struct sockaddr *)&sa->sin, sizeof(sa->sin)) == 0)) {
 		/* connected with IPv4 */
-		sa->sin.sin_port = port;
 		return 1;
 	}
 
@@ -4981,7 +4980,6 @@ static int connect_socket(struct mg_context *ctx /* may be null */,
 	if ((ip_ver == 6) &&
 	    (connect(*sock, (struct sockaddr *)&sa->sin6, sizeof(sa->sin6)) == 0)) {
 		/* connected with IPv6 */
-		sa->sin6.sin6_port = port;
 		return 1;
 	}
 #endif