mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Bug 18628: Pass the client_ip parameter in the JavaScript proxy as well.
This commit is contained in:
parent
0c7ddeb1d0
commit
eca7ebb265
2 changed files with 16 additions and 3 deletions
|
@ -46,9 +46,9 @@ buildUrl = (scheme, host, port, path, params) ->
|
|||
|
||||
parts.join ''
|
||||
|
||||
makeWebsocket = (addr) ->
|
||||
makeWebsocket = (addr, params) ->
|
||||
wsProtocol = if WSS_ENABLED then 'wss' else 'ws'
|
||||
url = buildUrl wsProtocol, addr.host, addr.port, '/'
|
||||
url = buildUrl wsProtocol, addr.host, addr.port, '/', params
|
||||
ws = new WebSocket url
|
||||
###
|
||||
'User agents can use this as a hint for how to handle incoming binary data: if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue