-
Notifications
You must be signed in to change notification settings - Fork 70
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
does not respect host
argument to forkServer
#11
Comments
Reported upstream: snapframework/snap-server#32 |
Upstream helpfully writes: The function you're looking for is called setBind (http://hackage.haskell.org/packages/archive/snap-server/0.9.2.4/doc/html/Snap-Http-Server-Config.html#v:setBind) which sets the bind address for the socket. The setHostname function just tells Snap what to use for the local hostname in the event that an HTTP/1.0 request comes in without a Host: header. |
@gregorycollins I tried
|
IP address or "*". |
This makes this a bit more complicated. We could try to do a name lookup in ekg and then pass the IP-address to Snap. I wonder if it's the right place to handle the issue though. |
I intend to work around the Snap issue in ekg, as it's important for security to be able to only listen on localhost. |
When I tell it to listen on localhost like here, it still listens on all available interfaces:
(output of netstat -tnpl)
I do realize this is probably a bug in Snap, just thought you should know.
The text was updated successfully, but these errors were encountered: