The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6350

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 473fb518b10a0e76ecedfcc1d71d9746dc81cb07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Fri, 25 Oct 2019 14:35:12 -0400
Subject: [PATCH] client: Ignore unresolvable addresses
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 client/lxd.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/lxd.go b/client/lxd.go
index 06feece85f..02cf92b3fb 100644
--- a/client/lxd.go
+++ b/client/lxd.go
@@ -61,6 +61,10 @@ func (r *ProtocolLXD) GetConnectionInfo() (*ConnectionInfo, 
error) {
 
        if r.server != nil && len(r.server.Environment.Addresses) > 0 {
                for _, addr := range r.server.Environment.Addresses {
+                       if strings.HasPrefix(addr, ":") {
+                               continue
+                       }
+
                        url := fmt.Sprintf("https://%s";, addr)
                        if !shared.StringInSlice(url, urls) {
                                urls = append(urls, url)
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to