Skip to content

Commit

Permalink
fix _monitor_address(), use getint_with_default
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Dec 5, 2023
1 parent 4a02b73 commit 4a636e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _gateway_address(self):
def _monitor_address(self):
"""Calculate gateway gRPC address string."""
monitor_addr = self.config.get("gateway", "addr")
monitor_port = self.config.get("gateway", "port") - 1
monitor_port = self.config.getint_with_default("gateway", "port", 5500) - 1
# We need to enclose IPv6 addresses in brackets before concatenating a colon and port number to it
monitor_addr = GatewayConfig.escape_address_if_ipv6(monitor_addr)
return "{}:{}".format(monitor_addr, monitor_port)
Expand Down

0 comments on commit 4a636e1

Please sign in to comment.