mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
- Cleanups
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@97 a942ae1a-1317-0410-a47c-b1dcaea8d605
This commit is contained in:
parent
376ed16880
commit
ab14ac8abb
1 changed files with 0 additions and 8 deletions
|
|
@ -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 a new issue