Also show message in the "error copying WebSocket to ORPort" case.

This was the only case out of the three not to show it.
This commit is contained in:
David Fifield 2020-01-30 10:15:12 -07:00
parent 50673d4943
commit a4287095c0

View file

@ -68,7 +68,7 @@ func proxy(local *net.TCPConn, conn *websocketconn.WebSocketConn) {
}()
go func() {
if _, err := io.Copy(local, conn); err != nil {
log.Printf("error copying WebSocket to ORPort")
log.Printf("error copying WebSocket to ORPort %v", err)
}
if err := local.CloseWrite(); err != nil {
log.Printf("error closing write after copying WebSocket to ORPort %v", err)