fix: Small modifications to test webserver (#1360)

This commit is contained in:
iTrooz
2023-10-10 17:28:58 +02:00
committed by GitHub
parent 7b22c49329
commit 6cbfb00cca

5
dist/web/serve.py vendored
View File

@@ -10,5 +10,6 @@ class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler):
if __name__ == '__main__':
os.chdir(".")
httpd = http.server.HTTPServer(("", 9090), MyHttpRequestHandler)
httpd.serve_forever()
httpd = http.server.HTTPServer(("localhost", 9090), MyHttpRequestHandler)
print(f"Serving {os.getcwd()} on http://{httpd.server_address[0]}:{httpd.server_address[1]}")
httpd.serve_forever()