diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-23 19:41:17 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-23 19:41:17 +0000 |
commit | f4e15b4b4b0b8dcecf056ea817aae967de401b45 (patch) | |
tree | e622d8cf1a98caa55005233e0313a37b3947d745 /slirp/slirp.c | |
parent | bbeb7b5cbd312b4690843499e0061691b8ae1fd8 (diff) |
Fix slirp redirection on systems without a useful host IP address.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1837 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/slirp.c')
-rw-r--r-- | slirp/slirp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/slirp.c b/slirp/slirp.c index a7d3f69119..b4ab12a088 100644 --- a/slirp/slirp.c +++ b/slirp/slirp.c @@ -146,7 +146,6 @@ void slirp_init(void) m_init(); /* set default addresses */ - getouraddr(); inet_aton("127.0.0.1", &loopback_addr); if (get_dns_addr(&dns_addr) < 0) { @@ -155,6 +154,7 @@ void slirp_init(void) } inet_aton(CTL_SPECIAL, &special_addr); + getouraddr(); } #define CONN_CANFSEND(so) (((so)->so_state & (SS_FCANTSENDMORE|SS_ISFCONNECTED)) == SS_ISFCONNECTED) |