Skip to content

Commit

Permalink
Update dns.py
Browse files Browse the repository at this point in the history
  • Loading branch information
downature authored Jan 11, 2017
1 parent c7ca5a6 commit 6232fc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def SendDnsData(data,s,addr):
break

def main(s):
try:
while 1:
while 1:
try:
data, addr = s.recvfrom(2048)
Tthreading(data,s,addr)
except Exception as e:
print "Unknow error :\t",e
except Exception as e:
print "Unknow error :\t",e

if __name__ == '__main__':

Expand Down

0 comments on commit 6232fc7

Please sign in to comment.