-
Notifications
You must be signed in to change notification settings - Fork 757
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
Fix Socket Port option #1683
base: master
Are you sure you want to change the base?
Fix Socket Port option #1683
Conversation
The socket port option documented in https://www.browsersync.io/docs/options/#option-socket did not affect anything. This allows the socket.port option to override the default port option so browser-sync can work in situations where the external port does not coincide with the internal port (ex: inside a docker container).
Note: helps issue #505 or at least improves the situation. I realize that in a docker container, this does not help much, but it is very helpful in other situations where browser-sync is behind a proxy. |
This would be really great and would fix the problem I described in #419, @shakyShane could you, @crlang44 or another maintainer review this? Many thanks! |
I would certainly be surprised if I was a maintainer on this repo. Where do you see that? |
Ah, it was on #1736, I must have mistook your acceptance of the review changes as being a maintainer |
We couldn't wait for this so we've added a post-install script with sed to apply the patch:
Works great! |
@shakyShane any chance of getting this one merged? |
I'd like to get this fixed, looking for a simple reproduction :) |
It's been too long, I don't have a reproduction anymore and barely remember this issue. |
The socket port option documented in https://www.browsersync.io/docs/options/#option-socket did not affect anything. This allows the socket.port option to override the default port option so browser-sync can work in situations where the external port does not coincide with the internal port (ex: inside a docker container with fixed external port). With quick testing, this seems to allow the socket.port option to change the port the socket connects to from the client.