Fix a bug with resolving a hostname from the config if AddressFamily config
option is specified.

socket.getaddrinfo was referencing an inexistent variable.