Skip to content

Commit 2b4ea6d

Browse files
committed
fix
1 parent c770ff2 commit 2b4ea6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/workspaceapps/appurl/appurl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func CompileHostnamePattern(pattern string) (*regexp.Regexp, error) {
163163
pattern = hostname
164164
}
165165

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

0 commit comments

Comments
 (0)