]> granicus.if.org Git - curl/commit
CURLOPT_INTERFACE: avoid resolving interfaces names
authorJason Glasgow <jglasgow@chromium.org>
Fri, 4 Nov 2011 20:48:05 +0000 (16:48 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Dec 2011 22:12:37 +0000 (23:12 +0100)
commit6e4835c795996ee92ac1aa78733f23a089f310a5
tree16c989d04fe8c94f2b03ccf18f587e0f4e2254ca
parentba057c2e1927bd5b7b026e2391984a899c2b8461
CURLOPT_INTERFACE: avoid resolving interfaces names

Do not try to resolve interfaces names via DNS by recognizing interface
names in a few ways.  If the interface option argument has a prefix of
"if!" then treat the argument as only an interface.  Similarly, if the
interface argument is the name of an interface (even if it does not have
an IP address assigned), treat it as an interface name.  Finally, if the
interface argument is prefixed by "host!" treat it as a hostname that
must be resolved by /etc/hosts or DNS.

These changes allow a client using the multi interfaces to avoid
blocking on name resolution if the interface loses its IP address or
disappears.
docs/libcurl/curl_easy_setopt.3
lib/connect.c
lib/if2ip.c
lib/if2ip.h