[lxc-devel] [lxd/master] lxd/net/util: Updates comment on NetworkInterfaceAddress behaviour change

tomponline on Github lxc-bot at linuxcontainers.org
Tue Apr 21 07:42:08 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200421/71a32e8a/attachment.bin>
-------------- next part --------------
From b98aa48a60ab6d834f89f306a828767962f26145 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Tue, 21 Apr 2020 08:41:12 +0100
Subject: [PATCH] lxd/net/util: Updates comment on NetworkInterfaceAddress
 behaviour change

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 lxd/util/net.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lxd/util/net.go b/lxd/util/net.go
index ebf0c1af2b..8dbbce4e8f 100644
--- a/lxd/util/net.go
+++ b/lxd/util/net.go
@@ -105,9 +105,7 @@ func ServerTLSConfig(cert *shared.CertInfo) *tls.Config {
 	return config
 }
 
-// NetworkInterfaceAddress returns the first non-loopback address of any of the
-// system network interfaces.
-//
+// NetworkInterfaceAddress returns the first global unicast address of any of the system network interfaces.
 // Return the empty string if none is found.
 func NetworkInterfaceAddress() string {
 	ifaces, err := net.Interfaces()


More information about the lxc-devel mailing list