added ident test
This commit is contained in:
parent
fa50cc27aa
commit
2a66a25100
4
HTTPy.py
4
HTTPy.py
@ -22,7 +22,7 @@ running = 1
|
|||||||
pingOn = "p"
|
pingOn = "p"
|
||||||
whoOn = "W"
|
whoOn = "W"
|
||||||
phrases = ["ping", "whois", "quit", "clear", "help", "nameserver"]
|
phrases = ["ping", "whois", "quit", "clear", "help", "nameserver"]
|
||||||
|
indent = '\t'
|
||||||
|
|
||||||
def openFile(filename):
|
def openFile(filename):
|
||||||
try:
|
try:
|
||||||
@ -140,7 +140,7 @@ def iterate(inArray, pre):
|
|||||||
if checkIfIP(inArray[count].split('.')) == 0:
|
if checkIfIP(inArray[count].split('.')) == 0:
|
||||||
tmpVal = isCNAME(inArray[count])
|
tmpVal = isCNAME(inArray[count])
|
||||||
|
|
||||||
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET
|
print indent + bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET
|
||||||
else:
|
else:
|
||||||
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
|
print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user