Created
May 26, 2019 07:58
-
-
Save Sean-Der/54ac26a29227f72899b6344c7914fd32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/data-channels/main.go b/examples/data-channels/main.go | |
index 4df8065..fd438d7 100644 | |
--- a/examples/data-channels/main.go | |
+++ b/examples/data-channels/main.go | |
@@ -15,9 +15,12 @@ func main() { | |
config := webrtc.Configuration{ | |
ICEServers: []webrtc.ICEServer{ | |
{ | |
- URLs: []string{"stun:stun.l.google.com:19302"}, | |
+ URLs: []string{"turn:localhost"}, | |
+ Username: "a", | |
+ Credential: "b", | |
}, | |
}, | |
+ ICETransportPolicy: webrtc.ICETransportPolicyRelay, | |
} | |
// Create a new RTCPeerConnection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment