From b4c655677adaeab5c53939ec1fffab880836fcbf Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Wed, 31 May 2017 15:40:20 -0700 Subject: [PATCH] clientv3: support unixs:// scheme For using TLS without giving a TLSConfig to the client. --- clientv3/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientv3/client.go b/clientv3/client.go index c3014bb4a..f220a895e 100644 --- a/clientv3/client.go +++ b/clientv3/client.go @@ -182,7 +182,7 @@ func parseEndpoint(endpoint string) (proto string, host string, scheme string) { host = url.Host switch url.Scheme { case "http", "https": - case "unix": + case "unix", "unixs": proto = "unix" host = url.Host + url.Path default: @@ -197,7 +197,7 @@ func (c *Client) processCreds(scheme string) (creds *credentials.TransportCreden case "unix": case "http": creds = nil - case "https": + case "https", "unixs": if creds != nil { break }