فهرست منبع

Reduced client random ID length to 4

Paul-Louis Ageneau 5 سال پیش
والد
کامیت
31be692f9d
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      examples/client/main.cpp
  2. 1 1
      examples/web/script.js

+ 1 - 1
examples/client/main.cpp

@@ -54,7 +54,7 @@ int main(int argc, char **argv) {
 	Configuration config;
 	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;
 
 	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}`;