def canonical_ip(host, port, af=0):
    return resolve_to_ip(host, port, af, gai_flags=socket.AI_NUMERICHOST)
Convert an IP address to a canonical format. Identical to resolve_to_ip,
dataset/ETHPy150Open arlolra/flashproxy/flashproxy/util.py/canonical_ip