diff options
author | Willy Goiffon <dev@z3bra.org> | 2022-09-04 09:30:10 +0200 |
---|---|---|
committer | Willy Goiffon <dev@z3bra.org> | 2022-09-04 09:30:10 +0200 |
commit | b6e13264e1b65b7b5f6fc20f3258389a35e07367 (patch) | |
tree | bb9d801580e9dac616ccc12225e159c990a23d4a /ratox.c | |
parent | 2ba12209bd3c4877a3da7a2d764d4cf471f1a2c0 (diff) |
Skip ipv6 only nodes when ipv6 is disabled
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |