diff --git a/main.cpp b/main.cpp index fab4a8b..1720bd5 100644 --- a/main.cpp +++ b/main.cpp @@ -34,7 +34,9 @@ int main(int argc, char* argv[]) { int port = clParser.getOption("port", 8080); - MyClient client("127.0.0.1", port); + auto host = clParser.getOption("host", "127.0.0.1"); + + MyClient client(host, port); client.setTiretteState(true);