Dev version: Support multiple ice connections

This commit is contained in:
dijunkun
2023-08-18 17:35:53 +08:00
parent 3a55dd0938
commit 515f0c06bd
8 changed files with 242 additions and 68 deletions

View File

@@ -5,7 +5,12 @@
int main(int argc, char* argv[]) {
SignalServer s;
std::string port = argv[1];
std::string port = "";
if (argc > 1) {
port = argv[1];
} else {
port = "9090";
}
std::cout << "Port: " << port << std::endl;
s.run(std::stoi(port));
return 0;