host address command line

This commit is contained in:
ackimixs
2024-05-21 22:21:48 +02:00
parent e5a8d0967f
commit b7a45f28c4

View File

@@ -19,9 +19,9 @@ int main(int argc, char* argv[]) {
int port = clParser.getOption<int>("port", 8080);
std::string host = clParser.getOption("host", "127.0.0.1");
auto host = clParser.getOption("host", "127.0.0.1");
GameControllerHandler gameControllerHandler(host.c_str(), port);
GameControllerHandler gameControllerHandler(host, port);
if (!gameControllerHandler.init()) {
return 1;