• Show log

    Commit

  • Hash : 72dd6667
    Author : Nick Mathewson
    Date : 2009-12-07T17:21:41

    evdns_getaddrinfo() now supports the /etc/hosts file.
    
    The regular blocking evutil_getaddrinfo() already supported /etc/hosts
    by falling back to getaddrinfo() or gethostbyname().  But
    evdns_getaddrinfo() had no such facility.  Now it does.
    
    The data structure here isn't very clever.  I guess people with huge
    /etc/hosts files will either need to get out of the 1980s, or submit a
    patch to this code so that it uses a hashtable instead of a linked
    list.
    
    Includes basic unit tests.