소스 검색

More distinct error codes for SOCKS

z3APA3A 10 년 전
부모
커밋
b513584fdb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/socks.c

+ 2 - 2
src/socks.c

@@ -121,7 +121,7 @@ void * sockschild(struct clientparam* param) {
 		}
 		}
 #endif
 #endif
 		if(SAISNULL(&param->req)) {
 		if(SAISNULL(&param->req)) {
-			RETURN(421);
+			RETURN(431);
 		}
 		}
 		myinet_ntop(*SAFAMILY(&param->sinsr), SAADDR(&param->sinsr), (char *)buf, 64);
 		myinet_ntop(*SAFAMILY(&param->sinsr), SAADDR(&param->sinsr), (char *)buf, 64);
 		break;
 		break;
@@ -164,7 +164,7 @@ void * sockschild(struct clientparam* param) {
  }
  }
 
 
  *SAPORT(&param->sinsr) = *SAPORT(&param->req) = port;
  *SAPORT(&param->sinsr) = *SAPORT(&param->req) = port;
- if(command == 1 && !*SAPORT(&param->sinsr)) {RETURN(421);}
+ if(command == 1 && !*SAPORT(&param->sinsr)) {RETURN(461);}
  switch(command) { 
  switch(command) { 
 	case 1:
 	case 1:
 	 param->operation = CONNECT;
 	 param->operation = CONNECT;