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: