From ca9384b79f0715259be7772b6db92ebae2863863 Mon Sep 17 00:00:00 2001 From: Ehco1996 Date: Sun, 25 Aug 2024 12:57:13 +0800 Subject: [PATCH] chore: fix relay config --- apps/proxy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/proxy/models.py b/apps/proxy/models.py index c578f8b07..e9056e59d 100644 --- a/apps/proxy/models.py +++ b/apps/proxy/models.py @@ -693,7 +693,7 @@ def get_config(self): for proxy_node in nodes: if not proxy_node.enable: continue - if not proxy_node.enable_ehco_tunnel: + if not proxy_node.enable_ehco_tunnel or proxy_node.enable_direct: tcp_remote = f"{proxy_node.server}:{proxy_node.get_user_port()}" else: tcp_remote = f"{proxy_node.server}:{proxy_node.ehco_listen_port}"