Fix "--client" option not working

This fixes "Error: Invalid option: 172.17.0.1" error
that made it impossible to use openrgb with remote
servers.
This commit is contained in:
Michal Stawinski 2023-02-24 01:39:28 +01:00 committed by Adam Honse
parent e55da57f46
commit a30323f22f

View file

@ -995,7 +995,6 @@ int ProcessOptions(int argc, char* argv[], Options* options, std::vector<RGBCont
if((option == "--localconfig") if((option == "--localconfig")
||(option == "--nodetect") ||(option == "--nodetect")
||(option == "--noautoconnect") ||(option == "--noautoconnect")
||(option == "--client")
||(option == "--server") ||(option == "--server")
||(option == "--gui") ||(option == "--gui")
||(option == "--i2c-tools" || option == "--yolo") ||(option == "--i2c-tools" || option == "--yolo")
@ -1016,6 +1015,7 @@ int ProcessOptions(int argc, char* argv[], Options* options, std::vector<RGBCont
else if((option == "--server-port") else if((option == "--server-port")
||(option == "--loglevel") ||(option == "--loglevel")
||(option == "--config") ||(option == "--config")
||(option == "--client")
||(option == "--autostart-enable")) ||(option == "--autostart-enable"))
{ {
/*-------------------------------------------------*\ /*-------------------------------------------------*\
@ -1308,6 +1308,7 @@ unsigned int cli_pre_detection(int argc, char* argv[])
ResourceManager::get()->GetClients().push_back(client); ResourceManager::get()->GetClients().push_back(client);
cfg_args++;
arg_index++; arg_index++;
} }