From 408cdd7cd194c1bf1dc982ca08e53fe3f5a0008e Mon Sep 17 00:00:00 2001 From: ljleb Date: Wed, 16 Aug 2023 00:12:10 -0400 Subject: [PATCH] long live relative urls --- lib_comfyui/webui/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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():