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

webpack sockjs-node Not receiving --host option #31

Open
Dav0n opened this issue Jun 27, 2019 · 2 comments
Open

webpack sockjs-node Not receiving --host option #31

Dav0n opened this issue Jun 27, 2019 · 2 comments

Comments

@Dav0n
Copy link

Dav0n commented Jun 27, 2019

During a nodejs webpack development
npm run serve -- --host x.x.x.x --port 9999
sockjs is not getting the parameter but for port it will do
from firefox console ->> http://localhost:9999/sockjs-node/info?t=1561647376841

@Dav0n
Copy link
Author

Dav0n commented Jun 27, 2019

I've found that in file "node_modules\webpack-dev-server\client\index.js" while running in client:
line 226:
var hostname = urlParts.hostname; <- first time evaluate to localhost, later to the right url value
var protocol = urlParts.protocol;
var port = urlParts.port; // check ipv4 and ipv6 all hostname

@Dav0n
Copy link
Author

Dav0n commented Jun 27, 2019

May be this isn't the right thread

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

No branches or pull requests

1 participant