From 272f64d74340b94b4ad548b42e0253494f6f3952 Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Fri, 1 Jul 2022 11:25:52 +0800 Subject: [PATCH] fix: get_target_ip bug --- apps/terminal/api/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/api/endpoint.py b/apps/terminal/api/endpoint.py index 8b98df67e..aaece2222 100644 --- a/apps/terminal/api/endpoint.py +++ b/apps/terminal/api/endpoint.py @@ -45,7 +45,7 @@ class SmartEndpointViewMixin: # 用来方便测试 target_ip = request.GET.get('target_ip', '') if not target_ip and callable(getattr(instance, 'get_target_ip', None)): - target_ip = instance.get_target_ip(request) + target_ip = instance.get_target_ip() endpoint = EndpointRule.match_endpoint(target_ip, protocol, request) return endpoint