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")
|
||||
||(option == "--nodetect")
|
||||
||(option == "--noautoconnect")
|
||||
||(option == "--client")
|
||||
||(option == "--server")
|
||||
||(option == "--gui")
|
||||
||(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")
|
||||
||(option == "--loglevel")
|
||||
||(option == "--config")
|
||||
||(option == "--client")
|
||||
||(option == "--autostart-enable"))
|
||||
{
|
||||
/*-------------------------------------------------*\
|
||||
|
|
@ -1308,6 +1308,7 @@ unsigned int cli_pre_detection(int argc, char* argv[])
|
|||
|
||||
ResourceManager::get()->GetClients().push_back(client);
|
||||
|
||||
cfg_args++;
|
||||
arg_index++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue