Skip to content

Conversation

alan-agius4
Copy link
Collaborator

With this change we set the publicHost to 0.0.0.0:0, when it's not provided.

This solved issues where previously the publicHost needed to be specified directly to get around ERR_SSL_PROTOCOL_ERROR error when proxing https -> http.

NB: this was also the behaviour in version 10

let clientAddress = url.parse(`${options.ssl ? 'https' : 'http'}://0.0.0.0:0`);

Closes #19403

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Nov 17, 2020
@google-cla google-cla bot added the cla: yes label Nov 17, 2020
@alan-agius4 alan-agius4 requested a review from clydin November 17, 2020 14:28
… HTTPS reverse proxy

With this change we set the publicHost to `0.0.0.0:0`, when it's not provided.

This solved issues where previously the publicHost needed to be specified directly to get around `ERR_SSL_PROTOCOL_ERROR` error when proxing https -> http.

NB: this was also the behaviour in version 10 https://github.com/angular/angular-cli/blob/c252968225c0ecac6c4d8ee08e14ae64de8791a8/packages/angular_devkit/build_angular/src/dev-server/index.ts#L170

Closes #19403
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Nov 17, 2020
@clydin clydin merged commit f67c612 into angular:master Nov 17, 2020
@alan-agius4 alan-agius4 deleted the dev-server-host branch November 17, 2020 20:41
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

angular 11 throws net::ERR_SSL_PROTOCOL_ERROR
2 participants