Skip to content

Commit 5ce6a6f

Browse files
committed
chore: remove localhost warning
1 parent f48843d commit 5ce6a6f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

enterprise/cli/proxyserver.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (*RootCmd) proxyServer() *clibase.Cmd {
9595
),
9696
Handler: func(inv *clibase.Invocation) error {
9797
if !(primaryAccessURL.Scheme == "http" || primaryAccessURL.Scheme == "https") {
98-
return xerrors.Errorf("primary access URL must be http or https: url=%s", primaryAccessURL.String())
98+
return xerrors.Errorf("'--primary-access-url' value must be http or https: url=%s", primaryAccessURL.String())
9999
}
100100

101101
var closers closers
@@ -175,20 +175,6 @@ func (*RootCmd) proxyServer() *clibase.Cmd {
175175
defer httpClient.CloseIdleConnections()
176176
closers.Add(httpClient.CloseIdleConnections)
177177

178-
// Warn the user if the access URL appears to be a loopback address.
179-
isLocal, err := cli.IsLocalURL(ctx, cfg.AccessURL.Value())
180-
if isLocal || err != nil {
181-
reason := "could not be resolved"
182-
if isLocal {
183-
reason = "isn't externally reachable"
184-
}
185-
cliui.Warnf(
186-
inv.Stderr,
187-
"The access URL %s %s, this may cause unexpected problems when creating workspaces. Generate a unique *.try.coder.app URL by not specifying an access URL.\n",
188-
cliui.DefaultStyles.Field.Render(cfg.AccessURL.String()), reason,
189-
)
190-
}
191-
192178
// A newline is added before for visibility in terminal output.
193179
cliui.Infof(inv.Stdout, "\nView the Web UI: %s", cfg.AccessURL.String())
194180

0 commit comments

Comments
 (0)