mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
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
This commit is contained in:
parent
5afb3c1454
commit
4c7b07ed3f
21 changed files with 216 additions and 127 deletions
|
|
@ -142,9 +142,13 @@ server_connect_copy_skeleton(SERVER_CONNECT_REC *src, int connect_info)
|
|||
dest->username = g_strdup(src->username);
|
||||
dest->realname = g_strdup(src->realname);
|
||||
|
||||
if (src->own_ip != NULL) {
|
||||
dest->own_ip = g_new(IPADDR, 1);
|
||||
memcpy(dest->own_ip, src->own_ip, sizeof(IPADDR));
|
||||
if (src->own_ip4 != NULL) {
|
||||
dest->own_ip4 = g_new(IPADDR, 1);
|
||||
memcpy(dest->own_ip4, src->own_ip4, sizeof(IPADDR));
|
||||
}
|
||||
if (src->own_ip6 != NULL) {
|
||||
dest->own_ip6 = g_new(IPADDR, 1);
|
||||
memcpy(dest->own_ip6, src->own_ip6, sizeof(IPADDR));
|
||||
}
|
||||
|
||||
dest->channels = g_strdup(src->channels);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue