From 86d263dd7dd39bbb768284fb6b586d1979a821cd Mon Sep 17 00:00:00 2001 From: Guillaume BROGI Date: Wed, 3 Dec 2014 09:43:24 +0100 Subject: Check for unix sockets when reconnecting --- src/core/servers-reconnect.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c index 0a08b461..d99a5405 100644 --- a/src/core/servers-reconnect.c +++ b/src/core/servers-reconnect.c @@ -253,6 +253,9 @@ static void sig_reconnect(SERVER_REC *server) conn->port = server->connrec->port; conn->password = g_strdup(server->connrec->password); + if (strchr(conn->address, '/') != NULL) + conn->unix_socket = TRUE; + server_reconnect_add(conn, (server->connect_time == 0 ? time(NULL) : server->connect_time) + reconnect_time); server_connect_unref(conn); -- cgit v1.2.3