fix TunnelClient host may null problem. #1060

This commit is contained in:
hengyunabc
2020-05-27 14:19:32 +08:00
parent 0d84baaf05
commit 45cc29694f
@@ -101,7 +101,7 @@ public class TunnelClient {
Bootstrap bs = new Bootstrap();
bs.group(eventLoopGroup).channel(NioSocketChannel.class).remoteAddress(agentRegisterURI.getHost(), port)
bs.group(eventLoopGroup).channel(NioSocketChannel.class).remoteAddress(host, port)
.handler(new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel ch) {