Skip to content

Instantly share code, notes, and snippets.

@haxxinen
Created February 10, 2020 21:25
Show Gist options
  • Save haxxinen/5f78c55bf7a4f293da53f331e6a6b9f1 to your computer and use it in GitHub Desktop.
Save haxxinen/5f78c55bf7a4f293da53f331e6a6b9f1 to your computer and use it in GitHub Desktop.
SimpleHTTPServerv6
$ cat SimpleHTTPServerv6.py
import BaseHTTPServer, SimpleHTTPServer, socket

class SimpleHTTPServer6(BaseHTTPServer.HTTPServer):
   address_family=socket.AF_INET6

SimpleHTTPServer.test(ServerClass=SimpleHTTPServer6)
$ SimpleHTTPServerv6.py
$ http http://[::1]:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment