reset transparent flag on keep-alive connection

This commit is contained in:
z3APA3A 2016-01-23 17:16:49 +03:00
parent 4af5f2fde7
commit d6f29ac6df

View File

@ -293,6 +293,7 @@ for(;;){
RETURN(511); RETURN(511);
} }
if(buf[i-3] == '1') keepalive = 2; if(buf[i-3] == '1') keepalive = 2;
param->transparent = 0;
if((isconnect = !strncasecmp((char *)buf, "CONNECT", 7))) keepalive = 2; if((isconnect = !strncasecmp((char *)buf, "CONNECT", 7))) keepalive = 2;
if ((sb=(unsigned char *)(unsigned char *)strchr((char *)buf, ' ')) == NULL) {RETURN(512);} if ((sb=(unsigned char *)(unsigned char *)strchr((char *)buf, ' ')) == NULL) {RETURN(512);}