Skip to content

Parse sentinel IP statements better #30

Description

@therealbill

Currently we only take the first IP address in the bind statement. RS should instead use a priority of:

  1. sentinel-announce-ip (same for port!)
  2. First IP in bind statement

It shall use this to determine it's name. In the event there is no bind statement AND no announce-ip in the sentinel config AND no address passed to red skull directly we will still need to determine an IP:Port string.

Another option to consider is to store a structured comment in the config file to name the sentinel, or looking in /etc/hosts for hostname (while still using the connectivity info above).

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions