From b6e13264e1b65b7b5f6fc20f3258389a35e07367 Mon Sep 17 00:00:00 2001 From: Willy Goiffon Date: Sun, 4 Sep 2022 09:30:10 +0200 Subject: Skip ipv6 only nodes when ipv6 is disabled --- ratox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index 7a27832..f877205 100644 --- a/ratox.c +++ b/ratox.c @@ -1482,7 +1482,7 @@ toxconnect(void) for (i = 0; i < LEN(nodes); i++) { n = &nodes[i]; - if (ipv6 && !n->addr6) + if ((ipv6 && !n->addr6) || (!ipv6 && !n->addr4)) continue; str2id(n->idstr, id); r = tox_bootstrap(tox, ipv6 ? n->addr6 : n->addr4, n->udp_port, id, NULL); -- cgit v1.2.3