Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zeroconf configuration fails if 192.0.2.0 is unreachable #410

Open
TobiasSchaffner opened this issue Mar 7, 2024 · 0 comments
Open

Zeroconf configuration fails if 192.0.2.0 is unreachable #410

TobiasSchaffner opened this issue Mar 7, 2024 · 0 comments

Comments

@TobiasSchaffner
Copy link
Contributor

zeroconf.ServiceInfo expect the IP address that should be announced by zeroconfig as argument. This should be the IP address of the external interface.

At the moment a 'hack' is used to determine the IP address. A socket is opened to a hardcoded address and the local ip of this socket is used. https://github.com/siemens/mtda/blame/aecc0f725577600433c4d8c1aafefd74137747a5/mtda-service#L61

This fails if the hardcoded address is unreachable.

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

No branches or pull requests

1 participant