File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ type Options struct {
86
86
// It will use the same scheme and port number as the access URL.
87
87
// E.g. "*.apps.coder.com" or "*-apps.coder.com".
88
88
AppHostname string
89
- // AppHostnameRegex contains the regex version of options.Hostname as
89
+ // AppHostnameRegex contains the regex version of options.AppHostname as
90
90
// generated by httpapi.CompileHostnamePattern(). It MUST be set if
91
- // options.Hostname is set.
91
+ // options.AppHostname is set.
92
92
AppHostnameRegex * regexp.Regexp
93
93
Logger slog.Logger
94
94
Database database.Store
@@ -183,7 +183,7 @@ func New(options *Options) *API {
183
183
options .Logger , options .DeploymentValues .Experiments .Value (),
184
184
)
185
185
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" )
187
187
}
188
188
if options .AgentConnectionUpdateFrequency == 0 {
189
189
options .AgentConnectionUpdateFrequency = 3 * time .Second
You can’t perform that action at this time.
0 commit comments