annotate contrib/tor2dns/serve @ 775:5c86c4e82b4c draft

updated my software to resdb
author d3v11 <d3v11@d3v11.ano>
date Fri, 25 Nov 2011 23:21:28 +0000
parents
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()