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

pull/10908/head
Eric 2023-07-05 15:17:28 +08:00 committed by Bryan
parent 7f03639c34
commit f096014d03
1 changed files with 1 additions and 1 deletions

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