Invalid host header when using wildcard domain
[Describe the bug]
When starting HTTP tunnel with a reserved custom wildcard domain like *.dev.example.com
, LocalXpose client forwards non-TLS traffic to my localhost service with invalid host header.
[Steps To Reproduce]
Start a tunnel like
loclx tunnel http —reserved-domain “*.dev.example.com“ —to localhost:80
Start a dummy server in localhost like
nc -l 80 -vv
Create a request to the tunnel address like
curl http://hello.dev.example.com
.See the dummy server logs and you will find the
Host: *.dev.example.com
[Expected Behaviour]
Host header should be the requested domain address, in the previous example should be hello.dev.example.com
.