forked from I2P_Developers/i2p.i2p
Set SOCKS5 addressType to AddressType.DOMAINNAME on a successful mapping
This commit is contained in:
@@ -210,6 +210,7 @@ public class SOCKS5Server extends SOCKSServer {
|
|||||||
String mappedUrl = getMappedUrlForIP(connHostName);
|
String mappedUrl = getMappedUrlForIP(connHostName);
|
||||||
if (mappedUrl != null && mappedUrl.toLowerCase(Locale.US).endsWith(".i2p")) {
|
if (mappedUrl != null && mappedUrl.toLowerCase(Locale.US).endsWith(".i2p")) {
|
||||||
_log.debug("IPV4 address " + connHostName + " was mapped to URL " + mappedUrl);
|
_log.debug("IPV4 address " + connHostName + " was mapped to URL " + mappedUrl);
|
||||||
|
addressType = AddressType.DOMAINNAME;
|
||||||
connHostName = mappedUrl;
|
connHostName = mappedUrl;
|
||||||
} else if (command != Command.UDP_ASSOCIATE)
|
} else if (command != Command.UDP_ASSOCIATE)
|
||||||
_log.warn("IPV4 address type in request: " + connHostName + ". Is your client secure?");
|
_log.warn("IPV4 address type in request: " + connHostName + ". Is your client secure?");
|
||||||
|
Reference in New Issue
Block a user