[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Also show message in the "error copying WebSocket to ORPort" case.
commit a4287095c05addaa204c605c691f147da477c2f5
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Thu Jan 30 10:15:12 2020 -0700
Also show message in the "error copying WebSocket to ORPort" case.
This was the only case out of the three not to show it.
---
server/server.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/server.go b/server/server.go
index 5ed56d3..9023252 100644
--- a/server/server.go
+++ b/server/server.go
@@ -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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits