mirror of
https://github.com/flotwig/spoofident
synced 2025-08-29 13:27:41 +00:00
Exceptions Exceptions Exceptions Exceptions
This commit is contained in:
parent
82e4817469
commit
9566b80bd6
@ -12,7 +12,7 @@ def handleIdent(fd):
|
|||||||
data=fd.recv(1024).strip()
|
data=fd.recv(1024).strip()
|
||||||
if data: break
|
if data: break
|
||||||
except:
|
except:
|
||||||
pass
|
pass # TODO: catch exceptions which are actual errors, as opposed to no-data reports
|
||||||
ports=data.split(',',2)
|
ports=data.split(',',2)
|
||||||
ports=map(validPort,ports)
|
ports=map(validPort,ports)
|
||||||
if not data:
|
if not data:
|
||||||
@ -54,4 +54,7 @@ if __name__ == '__main__':
|
|||||||
client,addr=ready.accept()
|
client,addr=ready.accept()
|
||||||
inready.append(client)
|
inready.append(client)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
handleIdent(ready)
|
handleIdent(ready)
|
||||||
|
except:
|
||||||
|
pass
|
Loading…
x
Reference in New Issue
Block a user