Skip to content

Commit

Permalink
Send ports in right order
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOaks committed Jan 10, 2017
1 parent e99de18 commit 337fed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func Query(ip string, portOnServer, portOnClient int, timeout float64) (Response
conn.SetDeadline(time.Now().Add(time.Second * time.Duration(timeout)))
}

_, err = conn.Write([]byte(fmt.Sprintf("%d, %d", portOnServer, portOnClient) + "\r\n"))
_, err = conn.Write([]byte(fmt.Sprintf("%d, %d", portOnClient, portOnServer) + "\r\n"))
if err != nil {
return Response{}, err
}
Expand Down

0 comments on commit 337fed0

Please sign in to comment.