- Timestamp:
- Sep 28, 2013 6:41:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp_dns.c
r48526 r48753 279 279 if ((pDns->de_addr.s_addr) == RT_N2H_U32_C(INADDR_LOOPBACK)) 280 280 pDns->de_addr.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_ALIAS); 281 else 281 else if (pData->fUseDnsProxy != 1) 282 282 { 283 283 /* Modern Ubuntu register 127.0.1.1 as DNS server */ 284 LogRel(("NAT: DNS server %RTnaipv4 registration detected, switching to the host resolver.\n",284 LogRel(("NAT: DNS server %RTnaipv4 registration detected, switching to the DNS proxy.\n", 285 285 pDns->de_addr.s_addr)); 286 RTMemFree(pDns); 287 /* Releasing fetched DNS information. */ 288 slirpReleaseDnsSettings(pData); 289 pData->fUseHostResolver = 1; 290 return VINF_SUCCESS; 286 pData->fUseDnsProxy = 1; 287 pData->fUseHostResolver = 0; 291 288 } 292 289 }
Note:
See TracChangeset
for help on using the changeset viewer.