mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Actually call clientAddr.
This commit is contained in:
parent
1ef6211c6c
commit
4697746120
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue