VirtualBox

Changeset 71202 in vbox for trunk


Ignore:
Timestamp:
Mar 5, 2018 2:45:44 PM (7 years ago)
Author:
vboxsync
Message:

NAT: nameserver 0.0.0.0 is a valid setting. Map it to host's loopback.

File:
1 edited

Legend:

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

    r69500 r71202  
    194194            }
    195195        }
     196        else if (address->IPv4.u == INADDR_ANY)
     197        {
     198            /*
     199             * This doesn't seem to be very well documented except for
     200             * RTFS of res_init.c, but INADDR_ANY is a valid value for
     201             * for "nameserver".
     202             */
     203            address->IPv4.u = pData->special_addr.s_addr | RT_H2N_U32_C(CTL_ALIAS);
     204        }
    196205
    197206        pDns = RTMemAllocZ(sizeof(struct dns_entry));
Note: See TracChangeset for help on using the changeset viewer.

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