Преглед изворни кода

Added test for URL-encoded TURN credentials

Paul-Louis Ageneau пре 3 година
родитељ
комит
dabee8ee49
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      test/turn_connectivity.cpp

+ 2 - 2
test/turn_connectivity.cpp

@@ -50,9 +50,9 @@ void test_turn_connectivity() {
 	// STUN server example (not necessary, just here for testing)
 	// STUN server example (not necessary, just here for testing)
 	// Please do not use outside of libdatachannel tests
 	// Please do not use outside of libdatachannel tests
 	config1.iceServers.emplace_back("stun:stun.ageneau.net:3478");
 	config1.iceServers.emplace_back("stun:stun.ageneau.net:3478");
-	// TURN server example
+	// TURN server example (note that the reserved special character '@' is percent-encoded)
 	// Please do not use outside of libdatachannel tests
 	// Please do not use outside of libdatachannel tests
-	config2.iceServers.emplace_back("turn:datachannel_test:[email protected]:3478");
+	config2.iceServers.emplace_back("turn:datachannel_test_speci%40l:[email protected]:3478");
 
 
 	PeerConnection pc2(config2);
 	PeerConnection pc2(config2);