diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-14 22:36:04 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-14 22:36:04 +0000 |
commit | 885e7fa0eceed38ace9b4a2549fb2842247cf7a6 (patch) | |
tree | 737d4e9dd6ae07946aa6421a9f8b2d088d631847 /src | |
parent | adec7641f02cef7fa6d252381e4d70c05bcb8d12 (diff) | |
download | irssi-885e7fa0eceed38ace9b4a2549fb2842247cf7a6.zip |
Reconnecting shouldn't lose the address family.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1383 dbcabf3a-b0e7-0310-adc4-f8d773084564
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 2aee772a..1e2813d3 100644 --- a/src/core/servers-reconnect.c +++ b/src/core/servers-reconnect.c @@ -103,6 +103,7 @@ static int server_reconnect_timeout(void) static void sserver_connect(SERVER_SETUP_REC *rec, SERVER_CONNECT_REC *conn) { + conn->family = rec->family; conn->address = g_strdup(rec->address); if (conn->port == 0) conn->port = rec->port; @@ -132,6 +133,7 @@ server_connect_copy_skeleton(SERVER_CONNECT_REC *src, int connect_info) dest->proxy_string = g_strdup(src->proxy_string); if (connect_info) { + dest->family = src->family; dest->address = g_strdup(src->address); dest->port = src->port; dest->password = g_strdup(src->password); @@ -202,6 +204,7 @@ static void sig_reconnect(SERVER_REC *server) if (sserver == NULL || conn->chatnet == NULL) { /* not in any chatnet, just reconnect back to same server */ + conn->family = server->connrec->family; conn->address = g_strdup(server->connrec->address); conn->port = server->connrec->port; conn->password = g_strdup(server->connrec->password); |