Skip to content

Commit

Permalink
chore: Close TCP connection in baseTransporter's RelayTCPConn method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Jul 3, 2024
1 parent fd82c20 commit a5d587f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/transporter/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (b *baseTransporter) RelayTCPConn(c net.Conn, handshakeF TCPHandShakeF) err
if err != nil {
return err
}
defer rc.Close()

b.l.Infof("RelayTCPConn from %s to %s", c.LocalAddr(), remote.Address)
relayConn := conn.NewRelayConn(
Expand Down

0 comments on commit a5d587f

Please sign in to comment.