mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Simplify NewWebRTCDialer.
This commit is contained in:
parent
2fb52c8639
commit
db1ba4791b
1 changed files with 2 additions and 7 deletions
|
@ -125,14 +125,9 @@ type WebRTCDialer struct {
|
|||
}
|
||||
|
||||
func NewWebRTCDialer(broker *BrokerChannel, iceServers []webrtc.ICEServer) *WebRTCDialer {
|
||||
var config webrtc.Configuration
|
||||
if iceServers != nil {
|
||||
config = webrtc.Configuration{
|
||||
config := webrtc.Configuration{
|
||||
ICEServers: iceServers,
|
||||
}
|
||||
} else {
|
||||
config = webrtc.Configuration{}
|
||||
}
|
||||
return &WebRTCDialer{
|
||||
BrokerChannel: broker,
|
||||
webrtcConfig: &config,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue