Skip to content

Commit a30323f

Browse files
nazgeeCalcProgrammer1
authored andcommitted
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.
1 parent e55da57 commit a30323f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,6 @@ int ProcessOptions(int argc, char* argv[], Options* options, std::vector<RGBCont
995995
if((option == "--localconfig")
996996
||(option == "--nodetect")
997997
||(option == "--noautoconnect")
998-
||(option == "--client")
999998
||(option == "--server")
1000999
||(option == "--gui")
10011000
||(option == "--i2c-tools" || option == "--yolo")
@@ -1016,6 +1015,7 @@ int ProcessOptions(int argc, char* argv[], Options* options, std::vector<RGBCont
10161015
else if((option == "--server-port")
10171016
||(option == "--loglevel")
10181017
||(option == "--config")
1018+
||(option == "--client")
10191019
||(option == "--autostart-enable"))
10201020
{
10211021
/*-------------------------------------------------*\
@@ -1308,6 +1308,7 @@ unsigned int cli_pre_detection(int argc, char* argv[])
13081308

13091309
ResourceManager::get()->GetClients().push_back(client);
13101310

1311+
cfg_args++;
13111312
arg_index++;
13121313
}
13131314

0 commit comments

Comments
 (0)