I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 0052ebf3 authored by str4d's avatar str4d
Browse files

Set SOCKS5 addressType to AddressType.DOMAINNAME on a successful mapping

parent d9f7b24c
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,7 @@ public class SOCKS5Server extends SOCKSServer {
String mappedUrl = getMappedUrlForIP(connHostName);
if (mappedUrl != null && mappedUrl.toLowerCase(Locale.US).endsWith(".i2p")) {
_log.debug("IPV4 address " + connHostName + " was mapped to URL " + mappedUrl);
addressType = AddressType.DOMAINNAME;
connHostName = mappedUrl;
} else if (command != Command.UDP_ASSOCIATE)
_log.warn("IPV4 address type in request: " + connHostName + ". Is your client secure?");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment