Created
February 15, 2018 16:16
-
-
Save chrisklaiber/54511886e8e4c18126792fc634f44d57 to your computer and use it in GitHub Desktop.
Python SimpleHTTPServer over IPv6. Run as `python -m SimpleHTTPServer6 [PORT]`
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
import BaseHTTPServer | |
import SimpleHTTPServer | |
import socket | |
class HTTPServer6(BaseHTTPServer.HTTPServer): | |
address_family = socket.AF_INET6 | |
if __name__ == '__main__': | |
SimpleHTTPServer.test(ServerClass=HTTPServer6) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can simply execute in bash: