Browse Source

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

pull/10908/head
Eric 1 year ago committed by Bryan
parent
commit
f096014d03
  1. 2
      apps/terminal/models/component/endpoint.py

2
apps/terminal/models/component/endpoint.py

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

Loading…
Cancel
Save