perf: 移除针对端点 host 的校验

This commit is contained in:
Eric
2023-07-05 15:17:28 +08:00
committed by Bryan
parent 7f03639c34
commit f096014d03

View File

@@ -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