mirror of https://github.com/schollz/croc.git
fix
This commit is contained in:
parent
02b751cae2
commit
32dee5b559
|
@ -351,18 +351,19 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
|
|||
|
||||
// ordered := true
|
||||
// maxRetransmits := uint16(0)
|
||||
var id uint16 = 5
|
||||
var id uint16 = 1
|
||||
var negotiated = true
|
||||
options := &webrtc.DataChannelInit{
|
||||
// Ordered: &ordered,
|
||||
// MaxRetransmits: &maxRetransmits,
|
||||
ID: &id,
|
||||
Negotiated: &negotiated,
|
||||
ID: &id,
|
||||
}
|
||||
_ = options
|
||||
|
||||
sendMoreCh := make(chan struct{})
|
||||
|
||||
// Create a datachannel with label 'data'
|
||||
dc, err := pc.CreateDataChannel("data1098", nil)
|
||||
dc, err := pc.CreateDataChannel("data", options)
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue