diff --git a/src/socks.c b/src/socks.c index 31c09d8..4d048f8 100644 --- a/src/socks.c +++ b/src/socks.c @@ -120,7 +120,7 @@ void * sockschild(struct clientparam* param) { #ifndef NOIPV6 } #endif - if(SAISNULL(¶m->req)) { + if(command == 1 && SAISNULL(¶m->req)) { RETURN(431); } myinet_ntop(*SAFAMILY(¶m->sinsr), SAADDR(¶m->sinsr), (char *)buf, 64);