annotate contrib/tor2dns/serve @ 817:3a89ce26d425 draft

Merge commit '2a1b9efce060c4cc954785d55e0c00b0556898b1'
author Nick <nick@somerandomnick.ano>
date Wed, 07 Dec 2011 12:50:07 +0000
parents 5c86c4e82b4c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
775
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
1 #!/usr/bin/python
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
2 import SimpleHTTPServer
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
3 import SocketServer
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
4
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
5 PORT = 8053
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
6
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
7 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
8 httpd = SocketServer.TCPServer(("", PORT), Handler)
5c86c4e82b4c updated my software to resdb
d3v11 <d3v11@d3v11.ano>
parents:
diff changeset
9 httpd.serve_forever()