How to set upstream port

I’m writing some tests for a Worker.
I wrote a very basic server that will serve some pages the worker needs to transform.
I’m running

wragler dev --host http://localhost:8080 --upstream-protocol http --env development

If I’m understanding this correctly, if if do a


I should be fetching the host set with the --host flag. My issue is that it seems to be dropping the port, and this make the test harder to be run in other development environments.

Is there some way to set the upstream port?

1 Like

According to my tests, currently, ports other than 80 and 443 can only be fetched through SSL, whether the host is yours or not, even not on cloudflare.
I don’t know why there are such strange rules