diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-12-02 17:05:52 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-12-28 16:34:16 -0500 |
commit | aa529f6c32f2103a5571f98047ee3bd2d5074330 (patch) | |
tree | ea977e40cc4d347f5e11a7a203ff5b51f0d0b1e2 /configure.in | |
parent | e3a6493898fdca78b3b562f7cf870a26be526f70 (diff) | |
download | tor-aa529f6c32f2103a5571f98047ee3bd2d5074330.tar.gz tor-aa529f6c32f2103a5571f98047ee3bd2d5074330.zip |
Use getifaddrs, not connect+getsockname, to find our address
This resolves bug1827, and lets us avoid freaking people out.
Later, we can use it to get a complete list of our interfaces.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1f045f1349..a2aa417502 100644 --- a/configure.in +++ b/configure.in @@ -300,6 +300,7 @@ AC_CHECK_FUNCS( flock \ ftime \ getaddrinfo \ + getifaddrs \ getrlimit \ gettimeofday \ gmtime_r \ @@ -624,6 +625,7 @@ dnl These headers are not essential AC_CHECK_HEADERS( arpa/inet.h \ grp.h \ + ifaddrs.h \ inttypes.h \ limits.h \ linux/types.h \ |