Skip to content

Commit 90a3d63

Browse files
committed
feat: tcp反代建立连接失败时的日志调整,使其知道是哪个连接失败
1 parent ba7927a commit 90a3d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/top/meethigher/proxy/tcp/ReverseTcpProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected ReverseTcpProxy(NetServer netServer, NetClient netClient,
6565
);
6666
netClient.connect(targetPort, targetHost)
6767
.onFailure(e -> {
68-
log.error("failed to connect to {}:{}", targetHost, targetPort, e);
68+
log.error("source {} -- {} failed to connect to {}:{}", sourceLocal, sourceRemote, targetHost, targetPort, e);
6969
// 若连接目标服务失败,需要断开源头服务
7070
sourceSocket.close();
7171
})

0 commit comments

Comments
 (0)