Commit 0f8134bfd62a26d44b031723109f26660c995241

Authored by pbrook
1 parent ad064840

Downgrade DNS failure to a warning.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1815 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
slirp/slirp.c
... ... @@ -150,8 +150,8 @@ void slirp_init(void)
150 150 inet_aton("127.0.0.1", &loopback_addr);
151 151  
152 152 if (get_dns_addr(&dns_addr) < 0) {
153   - fprintf(stderr, "Could not get DNS address\n");
154   - exit(1);
  153 + dns_addr = loopback_addr;
  154 + fprintf (stderr, "Warning: No DNS servers found\n");
155 155 }
156 156  
157 157 inet_aton(CTL_SPECIAL, &special_addr);
... ...