-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Web server listens on all interfaces and says it's on localhost #1097
Comments
@spf13 we should fix this. Not sure what's easiest. Default to 127.0.0.1 and add a host flag? |
@bep I think that's prudent. I'll submit a PR since it's trivial. |
Note to self: when it says it's listening on 127.0.0.1, it does in fact set the base URL to that, which is why all the absolute references (like the css) were breaking for me (I'm developing on my VPS) |
Bind by default to 127.0.0.1. Previously it always bound to all interfaces. Always have log message display that the server is available on the interface to which it is bound, instead of the baseUrl. Fixes gohugoio#1097
Bind by default to 127.0.0.1. Previously it always bound to all interfaces. Always have log message display that the server is available on the interface to which it is bound, instead of the baseUrl. Fixes gohugoio#1097
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
hugo server -w
outputs, inter alia:In fact, it's actually listening on all interfaces. Really there should be an option/flag to pick an interface (which I don't see right now), or at least display the fact that it's actually open to the rest of the internet.
The text was updated successfully, but these errors were encountered: