mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 18:26:11 -04:00
fixup! Get ipv4 working on dual stack
This commit is contained in:
parent
fa410f739c
commit
528a532b27
@ -529,6 +529,12 @@ bool InternalServer::start() {
|
|||||||
closesocket(sock);
|
closesocket(sock);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (::bind(sock, (struct sockaddr*)&sockAddr6, sizeof(sockAddr6)) == SOCKET_ERROR) {
|
||||||
|
std::cerr << "ERROR: Failed to bind IPv6 socket" << std::endl;
|
||||||
|
closesocket(sock);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
mp_daemon = MHD_start_daemon(flags,
|
mp_daemon = MHD_start_daemon(flags,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user