bugfix, sni fuzzing preparation

This commit is contained in:
2023-10-29 17:22:24 +01:00
parent 2048702cf7
commit f7f9ad1628
3 changed files with 30 additions and 3 deletions

View File

@@ -254,6 +254,8 @@ class HttpFileServer(HTTPServer):
protocol = "https" if type(self.socket) == ssl.SSLSocket else "http"
if (int(port) == 80 and protocol == "http") or (int(port) == 443 and protocol == "https"):
port = ""
else:
port = f":{port}"
return f"{protocol}://{addr}{port}"