mirror of https://github.com/fail2ban/fail2ban
- Cleanups
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@97 a942ae1a-1317-0410-a47c-b1dcaea8d6050.6
parent
6f6742266c
commit
35e12b9ef3
|
@ -70,11 +70,3 @@ def textToIp(text):
|
|||
for e in dns:
|
||||
ipList.append(e)
|
||||
return ipList
|
||||
|
||||
if __name__ == "__main__":
|
||||
print textToIp("jlkjlk 123.456.789.000 jlkjl rhost=lslpc49.epfl.ch www.google.ch")
|
||||
try:
|
||||
print socket.gethostbyname_ex("195.122.223.30")[2]
|
||||
except socket.gaierror:
|
||||
print "Error"
|
||||
|
||||
|
|
Loading…
Reference in New Issue