Change the callback port to 2222 so that no sudo is needed.

This commit is contained in:
2024-05-09 16:22:18 -05:00
parent 327c993fff
commit a0f1895e6c
5 changed files with 18 additions and 5 deletions

View File

@@ -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):