Skip to content

Commit

Permalink
fix(tunnel): invalid log
Browse files Browse the repository at this point in the history
  • Loading branch information
igoogolx committed Jun 22, 2024
1 parent 68d25f4 commit f37db2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tunnel/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func handleTCPConn(ct conn.TcpConnContext) {
}
}()
if err != nil {
log.Warnln(log.FormatLog(log.TcpPrefix, "fail to get tcp conn, err: %v, rule: %v, remote address: %v"), err, ct.Rule(), ct.Metadata().RemoteAddress())
log.Warnln(log.FormatLog(log.TcpPrefix, "fail to get tcp conn, err: %v, rule: %v, remote address: %v"), err, ct.Rule().GetPolicy(), ct.Metadata().RemoteAddress())
return
}
remoteConn = statistic.NewTCPTracker(remoteConn, statistic.DefaultManager, ct.Metadata(), ct.Rule())
Expand Down

0 comments on commit f37db2d

Please sign in to comment.