def enforce_address_family(address_family):
    if address_family != socket.AF_UNSPEC:
        def getaddrinfo_replacement(host, port, family, *args, **kwargs):
            return _old_socket_getaddrinfo(host, port, options.address_family, *args, **kwargs)
        socket.getaddrinfo = getaddrinfo_replacement
Force all future name lookups to use the given address family.
dataset/ETHPy150Open arlolra/flashproxy/flashproxy/util.py/enforce_address_family