1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00

revert 7133a07 - it broke usage in some SOCKS implementations

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2020-05-23 20:40:27 +03:00
parent 86e8614934
commit 45aa78d953
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -256,9 +256,6 @@ namespace proxy
size += (1 + addr.dns.size); /* name length + domain name */
m_response[4] = addr.dns.size;
memcpy(m_response + 5, addr.dns.value, addr.dns.size);
// replace type to IPv4 for support socks5 clients
// without domain name resolving support (like netcat)
m_response[3] = ADDR_IPV4;
break;
}
htobe16buf(m_response + size - 2, port); //Port