1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-27 01:23:27 +01:00

Fix fall-back from IPv6 to IPv4

Professionalism edits
This commit is contained in:
Michael R. Torres 2014-03-05 07:17:57 -08:00
parent 2f473300cd
commit 2ae478d546

View File

@ -117,8 +117,10 @@ static Tox *init_tox(int ipv4)
int ipv6 = !ipv4;
Tox *m = tox_new(ipv6);
// TOX_ENABLE_IPV6_DEFAULT is always 1.
// Fuck checking it, this *should* be doing ipv4 fallback, no?
/*
* TOX_ENABLE_IPV6_DEFAULT is always 1.
* Checking it is redundant, this *should* be doing ipv4 fallback
*/
if (ipv6 && m == NULL) {
fprintf(stderr, "IPv6 didn't initialize, trying IPv4\n");
m = tox_new(0);