aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/cert.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cert.go')
-rw-r--r--cmd/cert.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/cert.go b/cmd/cert.go
index 8cc9f43528..53b4f9dcb4 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -156,8 +156,8 @@ func runCert(_ context.Context, c *cli.Command) error {
BasicConstraintsValid: true,
}
- hosts := strings.Split(c.String("host"), ",")
- for _, h := range hosts {
+ hosts := strings.SplitSeq(c.String("host"), ",")
+ for h := range hosts {
if ip := net.ParseIP(h); ip != nil {
template.IPAddresses = append(template.IPAddresses, ip)
} else {