From 78e7e448c629428bff02ebcd445b4e781c213e9a Mon Sep 17 00:00:00 2001 From: Benjamin Richter Date: Tue, 7 Feb 2023 17:47:08 +0100 Subject: [PATCH] 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 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 0d0666e..a4df1c7 100644 --- a/src/main.c +++ b/src/main.c @@ -1335,7 +1335,7 @@ int main(int argc, char* argv[]) socket_path = option_parser_get_value(&option_parser, "socket"); overlay_cursor = !!option_parser_get_value(&option_parser, "render-cursor"); 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"); log_level = option_parser_get_value(&option_parser, "verbose") ? NVNC_LOG_INFO : NVNC_LOG_WARNING;