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

Bind only to a link local address #13

Closed
sternenseemann opened this issue Jul 23, 2020 · 2 comments
Closed

Bind only to a link local address #13

sternenseemann opened this issue Jul 23, 2020 · 2 comments
Milestone

Comments

@sternenseemann
Copy link
Owner

This behavior can already be achieved when using a systemd based setup, but we should probably support it also in a systemd-less scenario. Binding to a specified address could be how to solve it, but link local is the most important in case you want to proxy spacecookie somehow or point a TOR hidden service to it without leaking the gopher space on the regular address.

@sternenseemann
Copy link
Owner Author

This would for example eliminate the need for sandboxing/containerizing spacecookie like this for hidden service only setups: hyperrealgopher/docker-spacecookie.

sternenseemann added a commit that referenced this issue Dec 27, 2020
Add optional way to specify a listening address which is used to
determine the SocketAddress to listen on using getaddrinfo.

Resolves #13.

BREAKING CHANGE:

GopherConfig record fields change. The old json config of the server
stays compatible though.
@sternenseemann
Copy link
Owner Author

This is now possible using the following configuration snippet.

{
  "listen": {
    "addr": "::1",
    "port": 70
  }
}

For the library cListenAddress must be Just "::1" or similar.

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

No branches or pull requests

1 participant