Skip to content

Commit 20ecf88

Browse files
committed
Fix some accidental renameS
1 parent 900709b commit 20ecf88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/coderd.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ type Options struct {
8686
// It will use the same scheme and port number as the access URL.
8787
// E.g. "*.apps.coder.com" or "*-apps.coder.com".
8888
AppHostname string
89-
// AppHostnameRegex contains the regex version of options.Hostname as
89+
// AppHostnameRegex contains the regex version of options.AppHostname as
9090
// generated by httpapi.CompileHostnamePattern(). It MUST be set if
91-
// options.Hostname is set.
91+
// options.AppHostname is set.
9292
AppHostnameRegex *regexp.Regexp
9393
Logger slog.Logger
9494
Database database.Store
@@ -183,7 +183,7 @@ func New(options *Options) *API {
183183
options.Logger, options.DeploymentValues.Experiments.Value(),
184184
)
185185
if options.AppHostname != "" && options.AppHostnameRegex == nil || options.AppHostname == "" && options.AppHostnameRegex != nil {
186-
panic("coderd: both Hostname and HostnameRegex must be set or unset")
186+
panic("coderd: both AppHostname and AppHostnameRegex must be set or unset")
187187
}
188188
if options.AgentConnectionUpdateFrequency == 0 {
189189
options.AgentConnectionUpdateFrequency = 3 * time.Second

0 commit comments

Comments
 (0)