mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-02 23:14:49 +08:00
Add TLS Support (#3312)
* Add TLS Support * Add to readme * Add guidance for windows users on generating certificates * Add guidance for windows users on generating certificates * Fix typo
This commit is contained in:
4
main.py
4
main.py
@@ -243,11 +243,11 @@ if __name__ == "__main__":
|
||||
|
||||
call_on_start = None
|
||||
if args.auto_launch:
|
||||
def startup_server(address, port):
|
||||
def startup_server(scheme, address, port):
|
||||
import webbrowser
|
||||
if os.name == 'nt' and address == '0.0.0.0':
|
||||
address = '127.0.0.1'
|
||||
webbrowser.open(f"http://{address}:{port}")
|
||||
webbrowser.open(f"{scheme}://{address}:{port}")
|
||||
call_on_start = startup_server
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user