Created
July 9, 2013 16:26
-
-
Save schmichael/5958841 to your computer and use it in GitHub Desktop.
reverse dns lookup is stoopid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Usage: python bobserver.py""" | |
from SimpleHTTPServer import SimpleHTTPRequestHandler, BaseHTTPServer | |
class BobServer(BaseHTTPServer.HTTPServer): | |
def address_string(self): | |
return ':'.join(self.client_address[:2]) | |
if __name__ == '__main__': | |
BaseHTTPServer.test(SimpleHTTPRequestHandler, BobServer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment