mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
add protocol setting to newWebRTCConn
This commit is contained in:
parent
80262c9e4f
commit
b2605b7961
2 changed files with 3 additions and 7 deletions
|
@ -461,8 +461,7 @@ func (sf *SnowflakeProxy) makePeerConnectionFromOffer(
|
|||
close(dataChan)
|
||||
|
||||
pr, pw := io.Pipe()
|
||||
conn := newWebRTCConn(pc, dc, pr, sf.bytesLogger)
|
||||
conn.SetConnectionProtocol(dc.Protocol())
|
||||
conn := newWebRTCConn(pc, dc, pr, sf.bytesLogger, dc.Protocol())
|
||||
|
||||
dc.SetBufferedAmountLowThreshold(bufferedAmountLowThreshold)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue