mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 13:32:36 +08:00
Renamed main.py to start.py
This commit is contained in:
parent
f081017c1a
commit
8480c5ff8f
@ -179,7 +179,7 @@ if __name__ == "__main__":
|
||||
def startup_server(address, port):
|
||||
import webbrowser
|
||||
if os.name == 'nt' and address == '0.0.0.0':
|
||||
address = '127.0.0.1'
|
||||
address = '0.0.0.0'
|
||||
webbrowser.open(f"http://{address}:{port}")
|
||||
call_on_start = startup_server
|
||||
|
||||
Loading…
Reference in New Issue
Block a user