Fix IPv6 addresses not being properly handled

This commit is contained in:
s809
2024-04-16 21:27:26 +05:00
parent 7c33dda11b
commit 7cd0c956f6
@@ -122,7 +122,10 @@ public class NettyClient extends NettyEventSource implements INettyConnection, A
{
return;
}
this.address = new InetSocketAddress(host, port);
// Remove IPv6 brackets
host = host.replaceAll("[\\[\\]]", "");
this.address = new InetSocketAddress(host port);
if (this.channel != null)
{