mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 10:16:03 -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);
|
||||
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
|
||||
mp_daemon = MHD_start_daemon(flags,
|
||||
|
Loading…
x
Reference in New Issue
Block a user