mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -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
|
// Pass the address of client as the remote address of incoming connection
|
||||||
clientIPParam := ws.Request().URL.Query().Get("client_ip")
|
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 {
|
if err != nil {
|
||||||
log.Printf("failed to connect to ORPort: %s", err)
|
log.Printf("failed to connect to ORPort: %s", err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue