Skip to content

Instantly share code, notes, and snippets.

@Sean-Der
Created May 26, 2019 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sean-Der/54ac26a29227f72899b6344c7914fd32 to your computer and use it in GitHub Desktop.
Save Sean-Der/54ac26a29227f72899b6344c7914fd32 to your computer and use it in GitHub Desktop.
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