main: Fix unix-socket option parsing

option_parser_get_value was looking for "unix" instead of "unix-socket" before, so it was impossible to switch to unix socket mode
github-issue-template
Benjamin Richter 2023-02-07 17:47:08 +01:00 committed by Andri Yngvason
parent f811beefb3
commit 78e7e448c6
1 changed files with 1 additions and 1 deletions

View File

@ -1335,7 +1335,7 @@ int main(int argc, char* argv[])
socket_path = option_parser_get_value(&option_parser, "socket"); socket_path = option_parser_get_value(&option_parser, "socket");
overlay_cursor = !!option_parser_get_value(&option_parser, "render-cursor"); overlay_cursor = !!option_parser_get_value(&option_parser, "render-cursor");
show_performance = !!option_parser_get_value(&option_parser, "performance"); show_performance = !!option_parser_get_value(&option_parser, "performance");
use_unix_socket = !!option_parser_get_value(&option_parser, "unix"); use_unix_socket = !!option_parser_get_value(&option_parser, "unix-socket");
disable_input = !!option_parser_get_value(&option_parser, "disable-input"); disable_input = !!option_parser_get_value(&option_parser, "disable-input");
log_level = option_parser_get_value(&option_parser, "verbose") log_level = option_parser_get_value(&option_parser, "verbose")
? NVNC_LOG_INFO : NVNC_LOG_WARNING; ? NVNC_LOG_INFO : NVNC_LOG_WARNING;