Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Added missing return statement so we don't try to use a non-existing …
Browse files Browse the repository at this point in the history
…connection
  • Loading branch information
mreiger committed Apr 22, 2021
1 parent 27a7e1e commit 1a2e267
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/konnectivityproxy/konnectivityproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (p *Proxy) forward() {
srvConn, err := p.listener.AcceptTCP()
if err != nil {
p.logger.Errorw("Error accepting connection on listener", "listener:", p.listener)
return
}
p.logger.Infow("New connection", "listener", p.listener, "to (listener address)", srvConn.LocalAddr(), "from (client address)", srvConn.RemoteAddr())

Expand Down

0 comments on commit 1a2e267

Please sign in to comment.