From 250b254c334bc72f7d36b650b70812e99a40b4aa Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Thu, 2 Jul 2020 14:42:39 +0300 Subject: [PATCH] - home: when printing HTTP addresses to console, use all IP addresses Close #1856 Squashed commit of the following: commit 47ff99f147216bf28f1395847148f084b9dd4deb Author: Simon Zolin Date: Thu Jul 2 14:27:03 2020 +0300 - home: when printing HTTP addresses to console, use all IP addresses --- home/home.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/home.go b/home/home.go index f5b9375f..e1338038 100644 --- a/home/home.go +++ b/home/home.go @@ -645,8 +645,10 @@ func printHTTPAddresses(proto string) { } for _, iface := range ifaces { - address = net.JoinHostPort(iface.Addresses[0], port) - log.Printf("Go to %s://%s", proto, address) + for _, addr := range iface.Addresses { + address = net.JoinHostPort(addr, strconv.Itoa(config.BindPort)) + log.Printf("Go to %s://%s", proto, address) + } } } else { address = net.JoinHostPort(config.BindHost, port)