Template the listener protocol into the receptor install bundle (#14792)

Previously we were hard-coding tcp, now we need to also support ws/wss.
This commit is contained in:
Jeff Bradberry
2024-01-22 11:29:34 -05:00
committed by Seth Foster
parent cd9dd43be7
commit 8ddb604bf1
3 changed files with 10 additions and 5 deletions

View File

@@ -234,6 +234,10 @@ class Instance(HasPolicyEditsMixin, BaseModel):
return True
return self.health_check_started > self.last_health_check
@property
def canonical_address(self):
return self.receptor_addresses.filter(canonical=True).first()
@property
def canonical_address_port(self):
# note: don't create a different query for receptor addresses, as this is prefetched on the View for optimization