mirror of https://github.com/jumpserver/jumpserver
perf: 移除针对端点 host 的校验
parent
7f03639c34
commit
f096014d03
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue