diff --git a/btcutil/certgen.go b/btcutil/certgen.go index 52e2d9cc..886279e3 100644 --- a/btcutil/certgen.go +++ b/btcutil/certgen.go @@ -76,7 +76,7 @@ func NewTLSCertPair(organization string, validUntil time.Time, extraHosts []stri dnsNames = append(dnsNames, host) } - addrs, err := interfaceAddrs() + addrs, err := InterfaceAddrs() if err != nil { return nil, nil, err } diff --git a/btcutil/net.go b/btcutil/net.go index 491e47b5..f82f3c98 100644 --- a/btcutil/net.go +++ b/btcutil/net.go @@ -11,9 +11,9 @@ import ( "net" ) -// interfaceAddrs returns a list of the system's network interface addresses. +// InterfaceAddrs returns a list of the system's network interface addresses. // It is wrapped here so that we can substitute it for other functions when // building for systems that do not allow access to net.InterfaceAddrs(). -func interfaceAddrs() ([]net.Addr, error) { +func InterfaceAddrs() ([]net.Addr, error) { return net.InterfaceAddrs() }