Skip to content

Commit

Permalink
refactor(run): use url.Hostname() instead of manual string splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
briceamen committed Dec 17, 2024
1 parent 5d72736 commit 04ef9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (runCtx *runContext) connectToRunServer(ctx context.Context) (*http.Respons
// Wrap with TLS if using HTTPS
if url.Scheme == "https" {
tlsConfig := config.TLSConfig.Clone()
tlsConfig.ServerName = strings.Split(url.Host, ":")[0]
tlsConfig.ServerName = url.Hostname()
conn = tls.Client(conn, tlsConfig)
}

Expand Down

0 comments on commit 04ef9d5

Please sign in to comment.