add protocol setting to newWebRTCConn

This commit is contained in:
Shelikhoo 2024-09-17 15:39:11 +01:00 committed by WofWca
parent 80262c9e4f
commit b2605b7961
2 changed files with 3 additions and 7 deletions

View file

@ -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)