mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Use logger instead
This commit is contained in:
parent
77c41207ef
commit
1d193a38a3
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ class ProxyPair
|
||||||
bytes = new Uint8Array recv
|
bytes = new Uint8Array recv
|
||||||
line = String.fromCharCode.apply(null, bytes)
|
line = String.fromCharCode.apply(null, bytes)
|
||||||
line = line.trim()
|
line = line.trim()
|
||||||
console.log 'WebRTC --> websocket data: ' + line
|
log 'WebRTC --> websocket data: ' + line
|
||||||
@c2rSchedule.push recv
|
@c2rSchedule.push recv
|
||||||
@flush()
|
@flush()
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ class Snowflake
|
||||||
try
|
try
|
||||||
offer = JSON.parse desc
|
offer = JSON.parse desc
|
||||||
dbg 'Received:\n\n' + offer.sdp + '\n'
|
dbg 'Received:\n\n' + offer.sdp + '\n'
|
||||||
console.log offer
|
log offer
|
||||||
sdp = new SessionDescription offer
|
sdp = new SessionDescription offer
|
||||||
@sendAnswer pair if pair.receiveWebRTCOffer sdp
|
@sendAnswer pair if pair.receiveWebRTCOffer sdp
|
||||||
catch e
|
catch e
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue