From 45cc29694f06b101673cd62354ea2e35f7b090c3 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Wed, 27 May 2020 14:19:32 +0800 Subject: [PATCH] fix TunnelClient host may null problem. #1060 --- .../java/com/alibaba/arthas/tunnel/client/TunnelClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnel-client/src/main/java/com/alibaba/arthas/tunnel/client/TunnelClient.java b/tunnel-client/src/main/java/com/alibaba/arthas/tunnel/client/TunnelClient.java index 00ee63292..bf5d44b6c 100644 --- a/tunnel-client/src/main/java/com/alibaba/arthas/tunnel/client/TunnelClient.java +++ b/tunnel-client/src/main/java/com/alibaba/arthas/tunnel/client/TunnelClient.java @@ -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() { @Override protected void initChannel(SocketChannel ch) {