Browse Source

fix: get_target_ip bug

pull/8524/head
feng626 2 years ago committed by Jiangjie.Bai
parent
commit
272f64d743
  1. 2
      apps/terminal/api/endpoint.py

2
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

Loading…
Cancel
Save