summaryrefslogtreecommitdiffstats
path: root/src/main_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_server.cpp')
-rw-r--r--src/main_server.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main_server.cpp b/src/main_server.cpp
index 90b3835..cd84cb9 100644
--- a/src/main_server.cpp
+++ b/src/main_server.cpp
@@ -30,7 +30,13 @@ int main (int argc, char *argv[]){
initLog();
- std::string address = "localhost";
+ if(argc < 2){
+ BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorServer <address>!";
+ return 0;
+ }
+
+ std::string address = argv[1];
+
// int port = 4002;
//
// UDPServer server = UDPServer(address, port);