mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 19:43:26 +01:00
Fixing fallback from IPv6 to IPv4
This commit is contained in:
parent
92d5b2fefc
commit
2f473300cd
@ -117,8 +117,10 @@ static Tox *init_tox(int ipv4)
|
||||
int ipv6 = !ipv4;
|
||||
Tox *m = tox_new(ipv6);
|
||||
|
||||
if (TOX_ENABLE_IPV6_DEFAULT && m == NULL) {
|
||||
fprintf(stderr, "IPv6 didn't initialize, trying IPv4 only\n");
|
||||
// TOX_ENABLE_IPV6_DEFAULT is always 1.
|
||||
// Fuck checking it, this *should* be doing ipv4 fallback, no?
|
||||
if (ipv6 && m == NULL) {
|
||||
fprintf(stderr, "IPv6 didn't initialize, trying IPv4\n");
|
||||
m = tox_new(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user