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