[PATH] check ip callback
Date: Wed, 12 Sep 2007 15:38:13 -0700
Sometimes the library user needs to verify address against some sort of
black list. Parsing and resolving address before calling libcurl would be a
really bad idea. It could be time consuming without local DNS cache and,
worst of all, leave a possibility for avoiding the blacklist using specially
crafted DNS server using the race condition.
We just implemented a new callback exactly for that. The callback is called
for every resolved IP address, and callback function function must return -1
if bad address or 0 if ok.
Please see patch against 7.16.4 attached.
Any comments are appreciatred.
- application/octet-stream attachment: ipcallback.diff