0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

windows fix

This commit is contained in:
Mathias Stearn 2010-04-05 19:25:01 -04:00
parent df4874f9a8
commit 0f2e939810

View File

@ -102,8 +102,8 @@ namespace mongo {
}else if (me.getType() == AF_INET6){ }else if (me.getType() == AF_INET6){
// IPv6 can also accept IPv4 connections as mapped addresses (::ffff:127.0.0.1) // IPv6 can also accept IPv4 connections as mapped addresses (::ffff:127.0.0.1)
// That causes a conflict if we don't do set it to IPV6_ONLY // That causes a conflict if we don't do set it to IPV6_ONLY
int on = 1; const int one = 1;
setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)); setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (const char*) &one, sizeof(one));
} }
prebindOptions( sock ); prebindOptions( sock );