fix: parent socks5 address length for domain type

This commit is contained in:
zkx5xkt 2022-01-22 12:44:13 +02:00
parent f53b0eb985
commit e94e6ec221

View File

@ -196,7 +196,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
return 59;
case 3:
if (sockgetlinebuf(param, SERVER, buf, 1, EOF, conf.timeouts[CHAIN_TO]) != 1) return 59;
len = (unsigned char)buf[0];
len = (unsigned char)buf[0] + 2;
if (sockgetlinebuf(param, SERVER, buf, len, EOF, conf.timeouts[CHAIN_TO]) != len) return 59;
break;
case 4: