Reduced client random ID length to 4

This commit is contained in:
Paul-Louis Ageneau
2020-05-31 23:04:27 +02:00
parent a5a444cb11
commit 31be692f9d
2 changed files with 2 additions and 2 deletions

View File

@ -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>();

View File

@ -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}`;