diff --git a/src/ros_main.cpp b/src/ros_main.cpp index 1fd57b51c..cc49acfe5 100644 --- a/src/ros_main.cpp +++ b/src/ros_main.cpp @@ -153,6 +153,7 @@ int main(int argc, char **argv) std::string local_ip(args.reverse_ip_address); + // if no reverse IP address has been configured, try to detect one if (local_ip.empty()) { local_ip = getLocalIPAccessibleFromHost(args.host);