summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-21 19:27:22 +0100
committersin <sin@2f30.org>2014-09-21 19:27:22 +0100
commit160cdde66877174874dbd7dcc1d6755eb30a0cd8 (patch)
tree0545530d63f241038043ab073331165bf9fff4a9 /ratox.c
parent3b3effc32a2ba91444683266cf4ea061d5081ee2 (diff)
Lay the ground for IPv6 support
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c5
1 files changed, 3 insertions, 2 deletions
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;
}