
4 Mar
2011
4 Mar
'11
11:37 a.m.
What is the correct way to negate the (default) resolver flag, address_configured?
On Windows, at least, specifying address_configured (which translates to AI_ADDRCONFIG) has a nasty side effect. If the 'external' network is down, the resolver can no longer resolve the "localhost" address. More here http://src.chromium.org/viewvc/chrome/trunk/src/net/base/host_resolver.cc?r1=16212&r2=16211
Well, I know nothing about this flag, but in asio sources we find the following: # if defined(AI_ADDRCONFIG) && !defined(__QNXNTO__) address_configured = AI_ADDRCONFIG # else address_configured = 0 # endif So can you just #define AI_ADDRCONFIG 0 ?