diff --git a/lib_comfyui/webui/settings.py b/lib_comfyui/webui/settings.py index 731ff24..5e7d636 100644 --- a/lib_comfyui/webui/settings.py +++ b/lib_comfyui/webui/settings.py @@ -106,9 +106,7 @@ def get_comfyui_reverse_proxy_url(): """ comfyui reverse proxy url, as seen from the browser """ - from modules import shared - webui_port = shared.cmd_opts.port if shared.cmd_opts.port is not None else 7860 - return f"http://localhost:{webui_port}{get_comfyui_reverse_proxy_route()}/" + return f"{get_comfyui_reverse_proxy_route()}/" def get_comfyui_reverse_proxy_route():