-
-
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
fixed ipv6 ip parsing and listening at [::] #673
Conversation
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.
I tested it and it works fine. Thanks!
Some small changes, but after that it's good to go :).
@@ -272,8 +272,21 @@ function processOptions(wpOpt) { | |||
|
|||
var protocol = options.https ? "https" : "http"; | |||
|
|||
/** | |||
* the formated uri of the webpack server |
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.
Can you remove this comment or make it more descriptive? Atm this tells me nothing more then I already know from looking at the code.
If you make it more descriptive, be sure to use //
instead.
pathname: options.inline !== false ? "/" : "webpack-dev-server/" | ||
}); | ||
//add the pathname of uri | ||
uri += options.inline !== false ? "/" : "webpack-dev-server/" |
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.
Can you make this a separate variable instead? It's hackish to override the variable in this case since in query
it's used for something else.
if(options.inline !== false) { | ||
var devClient = [require.resolve("../client/") + "?" + protocol + "://" + (options.public || (options.host + ":" + options.port))]; | ||
/** | ||
* client query url public or formated uri |
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.
Same as above.
😃 well, it's changed. And some tips are added to the example doc. #676 |
Please check if the PR fulfills these requirements
examples/
(for features)What kind of change does this PR introduce?
What is the current behavior? (You can also link to an open issue here)
#672
What is the new behavior?
it works!
Does this PR introduce a breaking change?
If this PR contains a breaking change, please describe the following...
ipv6 all host [::] inline mode with error #672