mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 22:36:37 +00:00
fix: get_target_ip bug
This commit is contained in:
parent
af2d927c1f
commit
272f64d743
@ -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…
Reference in New Issue
Block a user