Skip to content
GitLab
  • Explore
  • Sign in
  • itmineduitminedu
  • snf-ganeti
  • Repository
  • snf-ganeti
  • lib
  • jqueue.py
Find file Blame History Permalink
  • Manuel Franceschini's avatar
    Support for resolving hostnames to IPv6 addresses · b705c7a6
    Manuel Franceschini authored Jul 28, 2010
    
    
    This patch enables IPv6 name resolution by using socket.getaddrinfo
    instead of socket.gethostbyname_ex.
    
    It renames the HostInfo class to Hostname and unifies its use throughout
    the code. This is achieved by using static calls where no object is
    needed and removes some obsolete code.
    
    For now, we just resolve to IPv4 addresses, but this will change once it
    is needed.
    
    Signed-off-by: default avatarManuel Franceschini <livewire@google.com>
    Reviewed-by: default avatarIustin Pop <iustin@google.com>
    b705c7a6