summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-ircnet.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-04 01:47:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-04 01:47:13 +0000
commit4c7b07ed3fb03528d8f9b62297fd5d8df30929bf (patch)
tree5bc71bbfdcd907636b6ff27cbfed3e5fb2b03617 /src/fe-common/irc/fe-ircnet.c
parent5afb3c14541ec328483813e0783969ecc266042a (diff)
downloadirssi-4c7b07ed3fb03528d8f9b62297fd5d8df30929bf.zip
IPv6 fixes. Everything now keeps both v4 and v6 addresses in memory and
at connect() time it's decided which one should be used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1334 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-ircnet.c')
-rw-r--r--src/fe-common/irc/fe-ircnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-ircnet.c b/src/fe-common/irc/fe-ircnet.c
index 96092869..54a1b6da 100644
--- a/src/fe-common/irc/fe-ircnet.c
+++ b/src/fe-common/irc/fe-ircnet.c
@@ -106,7 +106,7 @@ static void cmd_ircnet_add(const char *data)
if (g_hash_table_lookup(optlist, "realname")) g_free_and_null(rec->realname);
if (g_hash_table_lookup(optlist, "host")) {
g_free_and_null(rec->own_host);
- rec->own_ip = NULL;
+ rec->own_ip4 = rec->own_ip6 = NULL;
}
if (g_hash_table_lookup(optlist, "autosendcmd")) g_free_and_null(rec->autosendcmd);
}
@@ -137,7 +137,7 @@ static void cmd_ircnet_add(const char *data)
value = g_hash_table_lookup(optlist, "host");
if (value != NULL && *value != '\0') {
rec->own_host = g_strdup(value);
- rec->own_ip = NULL;
+ rec->own_ip4 = rec->own_ip6 = NULL;
}
value = g_hash_table_lookup(optlist, "autosendcmd");