mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05: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
|
@ -545,9 +545,6 @@ func (sf *SnowflakeProxy) makePeerConnectionFromOffer(
|
|||
" before the client times out")
|
||||
}
|
||||
|
||||
if !strings.Contains(pc.LocalDescription().SDP, "\na=candidate:") {
|
||||
return nil, fmt.Errorf("SDP answer contains no candidate")
|
||||
}
|
||||
log.Printf("Answer: \n\t%s", strings.ReplaceAll(pc.LocalDescription().SDP, "\n", "\n\t"))
|
||||
|
||||
return pc, nil
|
||||
|
@ -608,10 +605,6 @@ func (sf *SnowflakeProxy) makeNewPeerConnection(
|
|||
// Wait for ICE candidate gathering to complete
|
||||
<-done
|
||||
|
||||
if !strings.Contains(pc.LocalDescription().SDP, "\na=candidate:") {
|
||||
return nil, fmt.Errorf("Probetest SDP offer contains no candidate")
|
||||
}
|
||||
|
||||
return pc, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue