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:
parent
e55da57f46
commit
a30323f22f
1 changed files with 2 additions and 1 deletions
3
cli.cpp
3
cli.cpp
|
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue