diff options
author | Guillaume BROGI <guillaume.brogi@yahoo.com> | 2014-12-03 09:43:24 +0100 |
---|---|---|
committer | Guillaume BROGI <guillaume.brogi@yahoo.com> | 2014-12-03 14:38:01 +0100 |
commit | 86d263dd7dd39bbb768284fb6b586d1979a821cd (patch) | |
tree | 4195723e6214382b3114dda50aa4c7b8f4e4c0c0 /src | |
parent | f0a6e5f82a909b5789dfdfa4928ad3d8c4b078a3 (diff) | |
download | irssi-86d263dd7dd39bbb768284fb6b586d1979a821cd.zip |
Check for unix sockets when reconnecting
Diffstat (limited to 'src')
-rw-r--r-- | src/core/servers-reconnect.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |