mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Make sure command line ice servers are used
This commit fixes a small error introduced in a previous commit. Servers given by command line options weren't being added to the configuration because we were checking for `iceServers` to be nil instead of not nil.
This commit is contained in:
parent
6cf53c4ef0
commit
97bab94e67
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ type WebRTCDialer struct {
|
|||
func NewWebRTCDialer(
|
||||
broker *BrokerChannel, iceServers []webrtc.ICEServer) *WebRTCDialer {
|
||||
var config webrtc.Configuration
|
||||
if iceServers == nil {
|
||||
if iceServers != nil {
|
||||
config = webrtc.Configuration{
|
||||
ICEServers: iceServers,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue