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

Networking - listen for IPv6 connections #2894

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

rotu
Copy link
Contributor

@rotu rotu commented Sep 11, 2024

Previously, attempting to connect to the web interface via IPv6 address would fail. Now it succeeds. Same for the mavlink2rest service.

Note this does not affect DNS.

  • e.g. http://blueos will still resolve to the IPv4 address.

This will prevent problems with services that use host networking and connect to localhost. As mentioned here, getent hosts localhost (resolve using hosts file instead of DNS) resolves to the IPv6 address.

Caveats:

  • When testing this, use service nginx reload NOT service nginx restart. In the blueos-core image, the config file nginx.conf is loaded from /home/pi/tools/nginx/ instead of /etc/nginx/. Using restart will cause the server to use the default config

@patrickelectric patrickelectric merged commit d31163b into bluerobotics:master Sep 12, 2024
6 checks passed
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