Actually call clientAddr.

This commit is contained in:
David Fifield 2017-10-17 22:19:23 -07:00
parent 1ef6211c6c
commit 4697746120

View file

@ -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)