1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-12 23:33:03 +01:00
This commit is contained in:
Jfreegman 2013-12-06 22:04:28 -05:00
commit eb9d4361f0

View File

@ -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;