summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
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;
}