mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Small modifications to test webserver (#1360)
This commit is contained in:
5
dist/web/serve.py
vendored
5
dist/web/serve.py
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user