Browse Source

revert 7133a07 - it broke usage in some SOCKS implementations

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1525/head
R4SAS 4 years ago
parent
commit
45aa78d953
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 3
      libi2pd_client/SOCKS.cpp

3
libi2pd_client/SOCKS.cpp

@ -256,9 +256,6 @@ namespace proxy @@ -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

Loading…
Cancel
Save