mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
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:
committed by
Adam Honse
parent
e55da57f46
commit
a30323f22f
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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user