Fix IPv6 addresses not being properly handled
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user