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

[improvement]: HTTP Binding to "::" causing issue for Ipv6 disabled system #532

Open
kguptasangoma opened this issue Nov 5, 2024 · 1 comment
Labels
improvement improvement triage Triage

Comments

@kguptasangoma
Copy link
Member

FreePBX Version

FreePBX 17

Improvement Description

If IPv6 is present in the Debian Freepbx system then HTTP server binding to :: , this ideally should always refer to 127.0.0.1 in the advanced settings.

@kguptasangoma kguptasangoma added triage Triage improvement improvement labels Nov 5, 2024
@JoseGoncalves
Copy link

JoseGoncalves commented Nov 12, 2024

Hi @kguptasangoma. I think the best solution would be to bind servers to name localhost.
If you bind to address 127.0.0.1 it will not work in the case a user disables the IPv4 stack on it's machine.
Binding to localhost would work for all situations, i.e., for IPv4-only stack, for IPv6-only stack and for dual-stack.
To use localhost in bindings one need to be sure that files /etc/hosts and /etc/gai.conf are correctly set, i.e., they should resolve localhost name to ::1 address in IPv6 machines and to 127.0.0.1 address in IPv4 (and dual-stack) machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improvement triage Triage
Projects
None yet
Development

No branches or pull requests

2 participants