-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Serve on all interfaces by default #39
Conversation
lib/server.js
Outdated
@@ -7,11 +7,12 @@ var Promise = require('bluebird'); | |||
var format = require('util').format; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are format
unused now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I switched to the more reliable require('url').format
and forgot to remove the format
import. I've seen the Travis error: I'll push an update.
This commit changes the default value of the `--ip` option to use Node's internal resolution. It means that it will try to bind to the unspecified IPv6 address `::` if available or else fall back to the unspecified IPv4 address `0.0.0.0`. In most systems, `::` also binds to `0.0.0.0` which effectively allows to listen on all interfaces. Closes hexojs#35
The Appveyor issue is due to a version mismatch with Node 9. |
Rubberstamp LGTM. |
Any idea about Appveyor? I am not familiar with it. |
@demurgos appveyor complains simply because npm 5.5.1 does not officially support nodejs 9.x. As long as test on 8.x is successful, it is safe to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. LGTM.
Since it seems fine, I'm merging it. Still, I quickly checked for the Appveyor issue: npm does not seem to use any engine dependency so it's a bit weird. |
This commit is a fix following the PR hexojs#39. This PR changed the default behavior of the server to listen on all interfaces (both IPv4 and IPv6). This commit was missing the update of the default configuration, causing the server to still listen only to IPv4 by default. The current commit fixes this error by using `undefined` (Node's default) for the IP. - See hexojs#35 - See hexojs#39
This commit changes the default value of the
--ip
option to useNode's internal resolution. It means that it will try to bind to
the unspecified IPv6 address
::
if available or else fall back to theunspecified IPv4 address
0.0.0.0
. In most systems,::
also bindsto
0.0.0.0
which effectively allows to listen on all interfaces.Closes #35