This should fix the logic for ip checking
This commit is contained in:
parent
245e98d8b8
commit
274538991b
3
HTTPy.py
3
HTTPy.py
@ -49,6 +49,8 @@ def compareSOA(inNameservers, inDomain, origSOA):
|
|||||||
|
|
||||||
def checkIfIP(in1):
|
def checkIfIP(in1):
|
||||||
count = 0
|
count = 0
|
||||||
|
if len(in1) != 4:
|
||||||
|
return 0
|
||||||
for dom in in1:
|
for dom in in1:
|
||||||
if dom.isdigit():
|
if dom.isdigit():
|
||||||
count += 1
|
count += 1
|
||||||
@ -147,7 +149,6 @@ while running == 1:
|
|||||||
if running == 0:
|
if running == 0:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if len(partDomain) == 4:
|
|
||||||
if checkIfIP(partDomain):
|
if checkIfIP(partDomain):
|
||||||
print "========================================================"
|
print "========================================================"
|
||||||
ipLookup(inInput)
|
ipLookup(inInput)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user