spec icon indicating copy to clipboard operation
spec copied to clipboard

forwardPorts should also allow "." (dot) in the service name

Open Roemer opened this issue 2 years ago • 0 comments

In our usecase, we name the services like dev.localdev and db.localdev in order to be able to use a no_proxy on .localdev. That means that forwarding a port from a service other than the dev-container would look like: db.localdev:5432 which works perfectly fine when manually adding that port with vscode. But defining that in the devcontainer.json fails because the regex only covers [a-z0-9-]. In my opinion, the regex could be extended to also allow ., so [a-z0-9-\.].

Roemer avatar Jun 14 '23 14:06 Roemer