-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
refactor(package): update internal-ip
v1.2.0...3.0.0 (dependencies
)
#1471
refactor(package): update internal-ip
v1.2.0...3.0.0 (dependencies
)
#1471
Conversation
internal-ip
v4.sync()
instead of v4()
(internal-ip
)
The clearify the main issue in #1109 was simply the fact that |
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.
@wtgtybhertgeghgtwtg Thx 👍 Please rebase :)
Codecov Report
@@ Coverage Diff @@
## master #1471 +/- ##
=======================================
Coverage 71.82% 71.82%
=======================================
Files 11 11
Lines 763 763
=======================================
Hits 548 548
Misses 215 215
Continue to review full report at Codecov.
|
v4.sync()
instead of v4()
(internal-ip
)internal-ip
v1.2.0...3.0.0 (dependencies
)
|
It works locally, so I'm guessing it just couldn't get the IP inside Travis and that |
To clarify, |
lib/util/createDomain.js
Outdated
@@ -8,7 +8,7 @@ module.exports = function createDomain(options, listeningApp) { | |||
const protocol = options.https ? 'https' : 'http'; | |||
const appPort = listeningApp ? listeningApp.address().port : 0; | |||
const port = options.socket ? 0 : appPort; | |||
const hostname = options.useLocalIp ? internalIp.v4() : options.host; | |||
const hostname = options.useLocalIp ? internalIp.v4.sync() : options.host; |
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.
const hostname = options.useLocalIp ? internalIp.v4.sync() || 'localhost' : options.host;
?
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.
Sounds good to me. Lemme rebase and I'll push that.
@wtgtybhertgeghgtwtg On last rebase please (promised) :) |
Already landed as 418493d but I got |
internal-ip
was brought back down because of #1109, but they've since added a sync methodType
Issues
SemVer