mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-17 13:27:28 +00:00
Updates godep for etcd-client to 3.1.10.
This commit is contained in:
6
vendor/github.com/coreos/etcd/pkg/transport/listener.go
generated
vendored
6
vendor/github.com/coreos/etcd/pkg/transport/listener.go
generated
vendored
@@ -28,7 +28,6 @@ import (
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/coreos/etcd/pkg/fileutil"
|
||||
@@ -120,10 +119,11 @@ func SelfCert(dirpath string, hosts []string) (info TLSInfo, err error) {
|
||||
}
|
||||
|
||||
for _, host := range hosts {
|
||||
if ip := net.ParseIP(host); ip != nil {
|
||||
h, _, _ := net.SplitHostPort(host)
|
||||
if ip := net.ParseIP(h); ip != nil {
|
||||
tmpl.IPAddresses = append(tmpl.IPAddresses, ip)
|
||||
} else {
|
||||
tmpl.DNSNames = append(tmpl.DNSNames, strings.Split(host, ":")[0])
|
||||
tmpl.DNSNames = append(tmpl.DNSNames, h)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user