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

feat(run-server): expose --host #28723

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

mxschmitt
Copy link
Member

No description provided.

const address = server.address();
if (!address) {
reject(new Error('Could not bind server socket'));
return;
}
const wsEndpoint = typeof address === 'string' ? `${address}${this._options.path}` : `ws://127.0.0.1:${address.port}${this._options.path}`;
const wsEndpoint = typeof address === 'string' ? `${address}${this._options.path}` : `ws://${hostname}:${address.port}${this._options.path}`;
Copy link
Member Author

@mxschmitt mxschmitt Dec 19, 2023

Choose a reason for hiding this comment

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

Note: We could use address.address there which would be more appropriate, but it results in ws://::1:3000/ instead of what the user expects ws://localhost:3000/.

This is aligned with e.g. what we do in HTML report.

This comment has been minimized.

Copy link
Contributor

Test results for "tests 1"

4 flaky ⚠️ [chromium] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [chromium] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [firefox] › library/emulation-focus.spec.ts:65:3 › should not affect mouse event target page
⚠️ [chromium] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks

21180 passed, 585 skipped
✔️✔️✔️

Merge workflow run.

@mxschmitt mxschmitt merged commit b88b194 into microsoft:main Dec 19, 2023
30 checks passed
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