Skip to content

network: read the documented host key for the mdns config#2366

Open
pguyot wants to merge 1 commit into
atomvm:release-0.7from
pguyot:w29/mdns-host-key
Open

network: read the documented host key for the mdns config#2366
pguyot wants to merge 1 commit into
atomvm:release-0.7from
pguyot:w29/mdns-host-key

Conversation

@pguyot

@pguyot pguyot commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

mdns_config() documents {host, ...} but maybe_start_mdns read the hostname key, so a spec-conforming config handed mdns:init an undefined hostname and it crashed on iolist_to_binary/1. Accept both, preferring the documented key.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

mdns_config() documents {host, ...} but maybe_start_mdns read the
`hostname` key, so a spec-conforming config handed mdns:init an
undefined hostname and it crashed on iolist_to_binary/1. Accept both,
preferring the documented key.

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@pguyot
pguyot force-pushed the w29/mdns-host-key branch from c7a0e8a to d61eb6e Compare July 20, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants