Skip to content

Commit c92cc65

Browse files
committed
fix merge
1 parent 0fc6352 commit c92cc65

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cli/server.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,20 +306,14 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
306306
return xerrors.Errorf("create derp map: %w", err)
307307
}
308308

309-
<<<<<<< HEAD
310-
appHostname := strings.TrimSpace(dflags.WildcardAccessURL.Value)
309+
appHostname := strings.TrimSpace(cfg.WildcardAccessURL)
311310
var appHostnameRegex *regexp.Regexp
312311
if appHostname != "" {
313312
appHostnameRegex, err = httpapi.CompileHostnamePattern(appHostname)
314313
if err != nil {
315314
return xerrors.Errorf("parse wildcard access URL %q: %w", appHostname, err)
316315
}
317316
}
318-
=======
319-
appHostname := strings.TrimPrefix(cfg.WildcardAccessURL, "http://")
320-
appHostname = strings.TrimPrefix(appHostname, "https://")
321-
appHostname = strings.TrimPrefix(appHostname, "*.")
322-
>>>>>>> idk
323317

324318
options := &coderd.Options{
325319
AccessURL: accessURLParsed,

0 commit comments

Comments
 (0)