Fix: Set loopback adress in set_ip_addr if gethostbyname2 fails
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 19:32:21 +0000 (14:32 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 May 2016 20:42:25 +0000 (16:42 -0400)
commit84f4ce0977fcb42ca4a0aeb9b4feb7b8297d3b04
treed19e9df85e5fff7e2282f3eafb1c9bb8012a5052
parentb2f26ff8607f18abba98718fb6a114ea04142975
Fix: Set loopback adress in set_ip_addr if gethostbyname2 fails

Some systems may not have "localhost" defined in accordance with IETF
RFC 6761. According to this RFC, applications may recognize
"localhost" names as special and resolve to the appropriate loopback
address.

We choose to use the system name resolution API first to honor its
network configuration. If this fails, we resolve to the appropriate
loopback address. This is done to accomodate systems which may want to
start tracing before their network configured.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/uri.c
This page took 0.026386 seconds and 4 git commands to generate.