VirtualBox

Changeset 54011 in vbox


Ignore:
Timestamp:
Jan 28, 2015 12:45:53 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97919
Message:

NAT: Don't switch to host resolver in the unix version of
get_dns_addr_domain() when we fail to get resolv.conf info. This will
be done in the host-idependent caller slirpInitializeDnsSettings().
Ditto for switching out.

No functional change intended.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp_dns.c

    r53624 r54011  
    164164    rc = rcp_parse(&st, RESOLV_CONF_FILE);
    165165
    166     /* for historical reasons: Slirp returns 0 and fall down to host resolver if wasn't able open resolv.conf file */
    167     if(rc == -1)
    168     {
    169         pData->fUseHostResolver = 1;
    170         return 0;
    171     }
     166    if (rc < 0)
     167        return -1;
    172168
    173169    /* for historical reasons: Slirp returns -1 if no nameservers were found */
     
    198194                LogRel(("NAT: DNS server %RTnaipv4 registration detected, switching to the DNS proxy\n", address->IPv4));
    199195                pData->fUseDnsProxy = 1;
    200                 pData->fUseHostResolver = 0;
    201196            }
    202197        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette