Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

NewFuture
Copy link
Contributor

Please check if the PR fulfills these requirements

  • An example has been added or updated in examples/ (for features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

  • Bugfix
  • [? ] Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
#672

What is the new behavior?

webpack-dev-server --host "::" --hot --inline

it works!

Does this PR introduce a breaking change?

  • Yes
  • No

If this PR contains a breaking change, please describe the following...

Copy link
Member

@SpaceK33z SpaceK33z left a 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
Copy link
Member

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/"
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@NewFuture NewFuture mentioned this pull request Oct 28, 2016
9 tasks
@NewFuture
Copy link
Contributor Author

😃 well, it's changed. And some tips are added to the example doc. #676

@NewFuture NewFuture closed this Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants