Skip to content

fix: allow ports in wildcard url configuration #11657

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

Merged
merged 5 commits into from
Jan 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
Emyrk committed Jan 17, 2024
commit 79548a8c9d20829c09dac75a96a6db8f2138eff3
2 changes: 1 addition & 1 deletion coderd/workspaceapps/appurl/appurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func CompileHostnamePattern(pattern string) (*regexp.Regexp, error) {
pattern = hostname
}

for i, label := range strings.Split(hostname, ".") {
for i, label := range strings.Split(pattern, ".") {
if i == 0 {
// We have to allow the asterisk to be a valid hostname label, so
// we strip the asterisk (which is only on the first one).
Expand Down