From 348ed3a1cc96c54b99c3d69630ade69d1aac2d78 Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Mon, 25 Sep 2017 08:51:44 +1000 Subject: [PATCH] Hopefully removed the extra arrows --- HTTPy.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/HTTPy.py b/HTTPy.py index 108b134..e127358 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -134,12 +134,15 @@ def iterate(inArray, pre): count = 0 while count != len(inArray) - 1: #print checkIfIP(inArray[count].split('.')) - if checkIfIP(inArray[count].split('.')) == 0: - tmpVal = isCNAME(inArray[count]) - - print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET - else: + if pre == "TXT" or pre == "SOA": print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + else: + if checkIfIP(inArray[count].split('.')) == 0: + tmpVal = isCNAME(inArray[count]) + + print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET + " -> " + bcolors.GREEN + tmpVal[0] + bcolors.RESET + else: + print bcolors.CYAN + pre, bcolors.GREEN + inArray[count] + bcolors.RESET count = count + 1