aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-06-06 17:33:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-06-06 17:33:35 +0000
commit930a45e7a93c964ec224bdddb59f97479b7e4a5d (patch)
treed567e363980655d50c73408540262b6ddaa3fff2 /include
parentafc66554d7225766a7b9ad773de38b9d0801ff84 (diff)
- Added CURLINFO_PRIMARY_IP as a new information retrievable with
curl_easy_getinfo. It returns a pointer to a string with the most recently used IP address. Modified test case 500 to also verify this feature. The implementing of this feature was sponsored by Lenny Rachitsky at NeuStar.
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index d87942376..b42f0b31b 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1596,9 +1596,10 @@ typedef enum {
CURLINFO_LASTSOCKET = CURLINFO_LONG + 29,
CURLINFO_FTP_ENTRY_PATH = CURLINFO_STRING + 30,
CURLINFO_REDIRECT_URL = CURLINFO_STRING + 31,
+ CURLINFO_PRIMARY_IP = CURLINFO_STRING + 32,
/* Fill in new entries below here! */
- CURLINFO_LASTONE = 31
+ CURLINFO_LASTONE = 32
} CURLINFO;
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as