Change the callback port to 2222 so that no sudo is needed.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/bin/python
|
||||
#!/bin/python3
|
||||
|
||||
import http.server, ssl, socketserver
|
||||
import urllib.parse
|
||||
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||
context.load_cert_chain("cert.pem") # PUT YOUR cert.pem HERE
|
||||
server_address = ("0.0.0.0", 443) # CHANGE THIS IP & PORT
|
||||
server_address = ("0.0.0.0", 2222) # CHANGE THIS IP & PORT
|
||||
#handler = http.server.SimpleHTTPRequestHandler
|
||||
|
||||
#class MyHandler(http.server.SimpleHTTPRequestHandler):
|
||||
|
||||
Reference in New Issue
Block a user