def __init__(self, address, base_port):
        if address == '*':
            self.ip_addr = '*'
            self.base_port = base_port
            self.is_ipv6 = False
        else:
            try:
                addr_tuple = getaddrinfo(address, base_port)[0][4]
            except gaierror:
                raise gaierror("Hostname '%s' could not be resolved" % address)
            self.ip_addr = addr_tuple[0]
            self.base_port = addr_tuple[1]
            self.is_ipv6 = True if len(addr_tuple) == 4 else False
dataset/ETHPy150Open scrapinghub/frontera/frontera/contrib/messagebus/zeromq/socket_config.py/SocketConfig.__init__/original