mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Update to go-webrtc HEAD
This commit is contained in:
parent
254223be0f
commit
9fd471b4c4
2 changed files with 5 additions and 7 deletions
|
@ -15,7 +15,6 @@ import (
|
|||
|
||||
"git.torproject.org/pluggable-transports/goptlib.git"
|
||||
"github.com/keroserene/go-webrtc"
|
||||
"github.com/keroserene/go-webrtc/data"
|
||||
)
|
||||
|
||||
var ptMethodName = "snowflake"
|
||||
|
@ -41,7 +40,7 @@ func copyLoop(a, b net.Conn) {
|
|||
}
|
||||
|
||||
type webRTCConn struct {
|
||||
dc *data.Channel
|
||||
dc *webrtc.DataChannel
|
||||
pc *webrtc.PeerConnection
|
||||
pr *io.PipeReader
|
||||
}
|
||||
|
@ -117,7 +116,7 @@ func makePeerConnectionFromOffer(sdp *webrtc.SessionDescription, config *webrtc.
|
|||
pc.OnIceComplete = func() {
|
||||
answerChan <- struct{}{}
|
||||
}
|
||||
pc.OnDataChannel = func(dc *data.Channel) {
|
||||
pc.OnDataChannel = func(dc *webrtc.DataChannel) {
|
||||
log.Println("OnDataChannel")
|
||||
|
||||
pr, pw := io.Pipe()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue