host command line argument

This commit is contained in:
ackimixs
2024-05-21 22:23:56 +02:00
parent 86d9fe78af
commit 7ff4358c12

View File

@@ -35,7 +35,9 @@ int main(int argc, char* argv[]) {
int port = clParser.getOption<int>("port", 8080);
auto* main = new MainWindow("127.0.0.1", port);
auto host = clParser.getOption("host", "127.0.0.1");
auto* main = new MainWindow(host, port);
main->setDisplayMode(mode);