Repository navigation
Say that host_address and host_addresses exclude loopback - #561
Merged
Merged
Conversation
The example config.json files suggested "host_address": "127.0.0.1", but other hosts reach the registry or node at these addresses, and web::hosts::experimental::host_interfaces() skips loopback interfaces, so the default host_addresses never includes one. Given 127.0.0.1, nmos-cpp-node aborts initialization with "No network interface corresponding to host_address?". Say that the addresses exclude loopback and how the defaults are chosen, and use a documentation address (RFC 5737) in the examples. Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The example
config.jsonfiles suggested"host_address": "127.0.0.1". Other hosts reach the registry or node at thehost_addressandhost_addressesadvertised in response headers and in the data model, so a loopback address is not useful there.web::hosts::experimental::host_interfaces()also skips loopback interfaces, so the defaulthost_addressesnever includes one, and nmos-cpp-node given127.0.0.1aborts initialization with "No network interface corresponding to host_address?".This changes only comments, in
nmos/settings.hand both exampleconfig.jsonfiles:host_address/host_addressesdescription ends "so not loopback addresses".host_addresses, and the first of those forhost_address.192.0.2.1, a documentation address from RFC 5737.Co-authored-by: Gareth's 🤖 buddy