mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
broker and proxy must not reject client offers with no ICE candidates
Fixes #40371. Partially reverts !141.
This commit is contained in:
parent
9ff205dd7f
commit
8792771cdc
4 changed files with 0 additions and 35 deletions
|
@ -4,11 +4,9 @@ import (
|
|||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"net/url"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -301,9 +299,6 @@ func (c *WebRTCPeer) preparePeerConnection(config *webrtc.Configuration) error {
|
|||
|
||||
<-done // Wait for ICE candidate gathering to complete.
|
||||
|
||||
if !strings.Contains(c.pc.LocalDescription().SDP, "\na=candidate:") {
|
||||
return fmt.Errorf("SDP offer contains no candidate")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue