diff --git a/server/main.cpp b/server/main.cpp index 536b26d0..da57cc2a 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -1002,6 +1002,9 @@ int main(int argc, char * argv[]) CLI11_PARSE(app, argc, argv); + if (not config_file.empty()) + configuration::set_config_file(config_file); + if (*early_active_runtime) { do_active_runtime = false; @@ -1014,9 +1017,6 @@ int main(int argc, char * argv[]) if (*no_encrypt) enc_state = wivrn_connection::encryption_state::disabled; - if (not config_file.empty()) - configuration::set_config_file(config_file); - if (*no_publish) publication = wivrn::service_publication::none; else