diff --git a/cmd/serve/serve.go b/cmd/serve/serve.go index 335a47b..bc5a731 100644 --- a/cmd/serve/serve.go +++ b/cmd/serve/serve.go @@ -92,7 +92,7 @@ func (c *command) Run(ctx context.Context) error { hostname := "localhost" // default hostname protocol := "http" - if *c.tlsCertPath != "" && *c.tlsKeyPath != "" { + if serveTLS { protocol = "https" } baseURL := fmt.Sprintf("%s://%s:%d", protocol, hostname, *c.port)