mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 20:03:25 +01:00
Merge branch 'master' of https://github.com/Tox/toxic
This commit is contained in:
commit
eb9d4361f0
@ -98,6 +98,11 @@ 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");
|
||||
m = tox_new(0);
|
||||
}
|
||||
|
||||
if (m == NULL)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user