Skip to content

Commit

Permalink
Fix wrong check for error
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovic committed Feb 11, 2016
1 parent cef8721 commit fc38a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (s *Server) createRoute(conn net.Conn, rURL *url.URL) *client {

if r.nc != nil {
_, rport, err := net.SplitHostPort(r.route.url.Host)
if err != nil {
if err == nil {
// We will send the url but based on the route's ip address.
if ip, ok := r.nc.(*net.TCPConn); ok {
addr := ip.RemoteAddr().(*net.TCPAddr)
Expand Down

0 comments on commit fc38a83

Please sign in to comment.