[hop_node] Validate listener_port is defined for peers (#14056)

add peer listener_port validation and update install bundle if listener_port is defined or not defined.
This commit is contained in:
Jake Jackson
2023-06-12 15:52:10 -04:00
committed by Seth Foster
parent 148111a072
commit 40fca6db57
5 changed files with 26 additions and 10 deletions

View File

@@ -178,7 +178,8 @@ class Instance(HasPolicyEditsMixin, BaseModel):
)
listener_port = models.PositiveIntegerField(
blank=True,
default=27199,
null=True,
default=None,
validators=[MinValueValidator(1), MaxValueValidator(65535)],
help_text=_("Port that Receptor will listen for incoming connections on."),
)