Skip to content

Commit b10ff03

Browse files
authored
adding ::1 to self-signed certs (#33945)
1 parent 17f770c commit b10ff03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func IsIPv6(ip string) bool {
284284

285285
func generateSelfSignedCert() (tls.Config, error) {
286286
// create cert
287-
hosts := []string{"127.0.0.1", "localhost"}
287+
hosts := []string{"127.0.0.1", "localhost", "::1"}
288288
_, rootCertPEM, rootKey, err := pkgtoken.GenerateRootCert(hosts, 2048)
289289
if err != nil {
290290
return tls.Config{}, fmt.Errorf("unable to generate a self-signed certificate: %v", err)

0 commit comments

Comments
 (0)