Skip to content

Commit

Permalink
fix: use 127.0.0.1 as loopback server-name
Browse files Browse the repository at this point in the history
Signed-off-by: zwtop <[email protected]>
  • Loading branch information
zwtop committed May 30, 2024
1 parent 24d2056 commit 30a03b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/options/serving.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,9 @@ func (o *secureServingOptions) ApplyTo(config *RecommendedConfig) error {
return err
}
config.LoopbackClientConfig, err = config.SecureServing.NewLoopbackClientConfig(uuid.New().String(), lo.Must(os.ReadFile(o.CACrtPath)))
return err
if err != nil {
return err
}
config.LoopbackClientConfig.TLSClientConfig.ServerName = "127.0.0.1"
return nil
}

0 comments on commit 30a03b1

Please sign in to comment.