Skip to content

Commit

Permalink
fixup! Get ipv4 working on dual stack
Browse files Browse the repository at this point in the history
  • Loading branch information
sgourdas committed Oct 6, 2024
1 parent fa410f7 commit c4ed780
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/internalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,12 @@ bool InternalServer::start() {
closesocket(sock);
return false;
}

if (::bind(sock, (struct sockaddår*)&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,
Expand Down

0 comments on commit c4ed780

Please sign in to comment.