mirror of
				https://github.com/3proxy/3proxy.git
				synced 2025-11-04 07:42:39 +08:00 
			
		
		
		
	More distinct error codes for SOCKS
This commit is contained in:
		
							parent
							
								
									5d0504cd33
								
							
						
					
					
						commit
						b513584fdb
					
				@ -121,7 +121,7 @@ void * sockschild(struct clientparam* param) {
 | 
			
		||||
		}
 | 
			
		||||
#endif
 | 
			
		||||
		if(SAISNULL(¶m->req)) {
 | 
			
		||||
			RETURN(421);
 | 
			
		||||
			RETURN(431);
 | 
			
		||||
		}
 | 
			
		||||
		myinet_ntop(*SAFAMILY(¶m->sinsr), SAADDR(¶m->sinsr), (char *)buf, 64);
 | 
			
		||||
		break;
 | 
			
		||||
@ -164,7 +164,7 @@ void * sockschild(struct clientparam* param) {
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
 *SAPORT(¶m->sinsr) = *SAPORT(¶m->req) = port;
 | 
			
		||||
 if(command == 1 && !*SAPORT(¶m->sinsr)) {RETURN(421);}
 | 
			
		||||
 if(command == 1 && !*SAPORT(¶m->sinsr)) {RETURN(461);}
 | 
			
		||||
 switch(command) { 
 | 
			
		||||
	case 1:
 | 
			
		||||
	 param->operation = CONNECT;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user