Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Conversation

@biilmann
Copy link
Member

When starting the proxy we first check if proxyPort is free and otherwise we pick a random free port.

The live tunnel would always connect to the port specified in the settings, so in that case it would
start serving the wrong dev server on the .live domain.

This makes sure we pass on the new port to the live tunnel if changed

When starting the proxy we first check if proxyPort is free and otherwise we pick a random free port.

The live tunnel would always connect to the port specified in the settings, so in that case it would
start serving the wrong dev server on the .live domain.

This makes sure we pass on the new port to the live tunnel if changed
const proxyUrl = await startProxy(settings, addonUrls);
let { url, port } = await startProxy(settings, addonUrls);
if (!url) {
url = proxyUrl;
Copy link
Contributor

Choose a reason for hiding this comment

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

this conditional is not necessary anymore, is it?

@swyxio swyxio merged commit 00ca633 into master Apr 25, 2019
@swyxio swyxio deleted the fix-port-for-live-tunnel branch April 25, 2019 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants