[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/master] Actually call clientAddr.



commit 46977461207a5670619def77aac9d364e94c2d53
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Oct 17 22:19:23 2017 -0700

    Actually call clientAddr.
---
 server/server.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/server.go b/server/server.go
index 1b33661..fff5887 100644
--- a/server/server.go
+++ b/server/server.go
@@ -155,7 +155,7 @@ func webSocketHandler(ws *websocket.WebSocket) {
 
 	// Pass the address of client as the remote address of incoming connection
 	clientIPParam := ws.Request().URL.Query().Get("client_ip")
-	or, err := pt.DialOr(&ptInfo, clientIPParam, ptMethodName)
+	or, err := pt.DialOr(&ptInfo, clientAddr(clientIPParam), ptMethodName)
 
 	if err != nil {
 		log.Printf("failed to connect to ORPort: %s", err)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits