2
0
Эх сурвалжийг харах

Reduced client random ID length to 4

Paul-Louis Ageneau 5 жил өмнө
parent
commit
31be692f9d

+ 1 - 1
examples/client/main.cpp

@@ -54,7 +54,7 @@ int main(int argc, char **argv) {
 	Configuration config;
 	Configuration config;
 	config.iceServers.emplace_back("stun:stun.l.google.com:19302"); // change to your STUN server
 	config.iceServers.emplace_back("stun:stun.l.google.com:19302"); // change to your STUN server
 
 
-	localId = randomId(8);
+	localId = randomId(4);
 	cout << "The local ID is: " << localId << endl;
 	cout << "The local ID is: " << localId << endl;
 
 
 	auto ws = make_shared<WebSocket>();
 	auto ws = make_shared<WebSocket>();

+ 1 - 1
examples/web/script.js

@@ -25,7 +25,7 @@ const config = {
   }],
   }],
 };
 };
 
 
-const localId = randomId(8);
+const localId = randomId(4);
 
 
 const url = `ws://localhost:8000/${localId}`;
 const url = `ws://localhost:8000/${localId}`;