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

HTTP server not accepting incoming connections from localhost #1395

Open
sanity opened this issue Jan 29, 2025 · 1 comment
Open

HTTP server not accepting incoming connections from localhost #1395

sanity opened this issue Jan 29, 2025 · 1 comment
Labels
A-developer-xp Area: developer experience

Comments

@sanity
Copy link
Collaborator

sanity commented Jan 29, 2025

The HTTP server is being started with 0.0.0.0:50509 as shown in the logs:

INFO freenet::server: HTTP gateway listening on 0.0.0.0:50509

When the server checks if the connection is local, it's using the binding address (0.0.0.0) rather than the incoming connection address to determine if it's a loopback connection. Since 0.0.0.0 is not a loopback
address, the check fails.

The workaround is to call freenet with the parameter --ws-api-address 127.0.0.1.

The proper fix is to modify the code to check the incoming connection address rather than the binding address.

@sanity sanity added A-developer-xp Area: developer experience C-bug labels Jan 29, 2025
@iduartgomez
Copy link
Collaborator

I feelw e broke this at some point, ti should be pointing to localhost. Should be an easy fix.

@iduartgomez iduartgomez removed the C-bug label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-developer-xp Area: developer experience
Projects
None yet
Development

No branches or pull requests

2 participants