@@ -3073,15 +3073,15 @@ def main():
|
||||
|
||||
_start_monitor_if_ready()
|
||||
|
||||
server = ThreadedServer(('0.0.0.0', PORT), Handler)
|
||||
server = ThreadedServer(('localhost', PORT), Handler)
|
||||
print(f"=> http://localhost:{PORT}", flush=True)
|
||||
print("Ctrl+C 停止\n", flush=True)
|
||||
|
||||
try:
|
||||
import webbrowser
|
||||
webbrowser.open(f'http://localhost:{PORT}')
|
||||
except Exception:
|
||||
pass
|
||||
# try:
|
||||
# import webbrowser
|
||||
# webbrowser.open(f'http://localhost:{PORT}')
|
||||
# except Exception:
|
||||
# pass
|
||||
|
||||
try:
|
||||
server.serve_forever()
|
||||
|
||||
Reference in New Issue
Block a user