Skip to content

Commit

Permalink
Fixed missing return on proxy handleConnections when an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Aug 7, 2019
1 parent 9e7b5f7 commit e11b5ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/proxy/proxy.go
Expand Up @@ -94,6 +94,7 @@ func (p *Proxy) handleConnections(pf *ProxyForward, key string) {
listener, err := net.Listen("tcp", fmt.Sprintf("%s:%s", pf.LocalIP, pf.LocalPort))
if err != nil {
p.view.Writef("❌ Could not create proxy listener for '%s:%s' (%s): %v\n", pf.LocalIP, pf.LocalPort, pf.GetHostname(), err)
return
}

p.listenerMux.Lock()
Expand Down

0 comments on commit e11b5ea

Please sign in to comment.