Skip to content

Commit

Permalink
listening all local ip addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Leask committed Jan 4, 2014
1 parent fb96ecd commit 3181a72
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tcpdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ def handle(self):

print '>> Please wait program init....'
print '>> Init finished!'
print '>> Now you can set dns server to 127.0.0.1'
print '>> Now you can set dns server to 0.0.0.0'

server = ThreadedUDPServer(('127.0.0.1', 53), ThreadedUDPRequestHandler)
server = ThreadedUDPServer(('0.0.0.0', 53), ThreadedUDPRequestHandler)

server.serve_forever()
server.shutdown()

0 comments on commit 3181a72

Please sign in to comment.