소스 검색

Ports are already assigned

bel 10 년 전
부모
커밋
01aeee05b3
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  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