From e295caa86691fe1172b5a9048da511655fb9e03e Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Mon, 1 Apr 2024 01:44:08 +0200 Subject: [PATCH] Fix github issue #1504 - irssi switches to af_unix if network name contains / In addition to looking for a /, we also check if the network name is known. --- src/core/chat-commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/chat-commands.c b/src/core/chat-commands.c index faeec451..10da0d2c 100644 --- a/src/core/chat-commands.c +++ b/src/core/chat-commands.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -91,7 +92,7 @@ static SERVER_CONNECT_REC *get_server_connect(const char *data, int *plus_addr, return NULL; } - if (strchr(addr, '/') != NULL) + if (strchr(addr, '/') != NULL && chatnet_find(addr) == NULL) conn->unix_socket = TRUE; /* TLS options are handled in server_create_conn_opt ... -> server_setup_fill_optlist */