

def isIPAddr(fqdn):
    ip = fqdn.split('.')
    if (len(ip) != 4):
        return False
    for a in ip:
        try:
            o = int(a)
        except:
            return False
        if ((o < 0) or (o > 255)):
            return False
    return True

dataset/ETHPy150Open yymax/x509test/src/Definitions.py isIPAddr/original