mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +00:00
Reduced client random ID length to 4
This commit is contained in:
@ -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>();
|
||||||
|
@ -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}`;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user