mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Add a --listen argument to listen on 0.0.0.0
This commit is contained in:
parent
41a7532c15
commit
43c795f462
6
main.py
6
main.py
@ -445,6 +445,10 @@ def run(prompt_queue, address='', port=8188):
|
||||
if __name__ == "__main__":
|
||||
q = PromptQueue()
|
||||
threading.Thread(target=prompt_worker, daemon=True, args=(q,)).start()
|
||||
run(q, address='127.0.0.1', port=8188)
|
||||
if '--listen' in sys.argv:
|
||||
address = '0.0.0.0'
|
||||
else:
|
||||
address = '127.0.0.1'
|
||||
run(q, address=address, port=8188)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user