Skip to content

Commit

Permalink
Merge pull request getlantern#3062 from getlantern/issue3057
Browse files Browse the repository at this point in the history
Add check for dialing error closes #3057
  • Loading branch information
atavism committed Aug 28, 2015
2 parents 91b353d + 26d9a46 commit 237590d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/github.com/getlantern/flashlight/client/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ func (client *Client) intercept(resp http.ResponseWriter, req *http.Request) {
} else {
connOut, err = detour.Dialer(d)("tcp", addr)
}
if err != nil {
log.Debugf("Could not dial %v", err)
return
}

if <-success {
// Pipe data between the client and the proxy.
Expand Down

0 comments on commit 237590d

Please sign in to comment.