From 160cdde66877174874dbd7dcc1d6755eb30a0cd8 Mon Sep 17 00:00:00 2001 From: sin Date: Sun, 21 Sep 2014 19:27:22 +0100 Subject: Lay the ground for IPv6 support --- ratox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index 84f2291..fb7c4cd 100644 --- a/ratox.c +++ b/ratox.c @@ -37,7 +37,8 @@ const char *reqerr[] = { }; struct node { - char *addr; + char *addr4; + char *addr6; uint16_t port; char *idstr; }; @@ -743,7 +744,7 @@ toxconnect(void) for (i = 0; i < LEN(nodes); i++) { n = &nodes[i]; str2id(n->idstr, id); - tox_bootstrap_from_address(tox, n->addr, n->port, id); + tox_bootstrap_from_address(tox, n->addr4, n->port, id); } return 0; } -- cgit v1.2.3