mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-24 13:00:26 +00:00
perf: 移除针对端点 host 的校验
This commit is contained in:
@@ -53,7 +53,7 @@ class Endpoint(JMSBaseModel):
|
||||
def is_valid_for(self, target_instance, protocol):
|
||||
if self.is_default():
|
||||
return True
|
||||
if self.host and self.get_port(target_instance, protocol) != 0:
|
||||
if self.get_port(target_instance, protocol) != 0:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user