diff --git a/btcutil/net_noop.go b/btcutil/net_noop.go index ae9c1f5f..9afc3a0f 100644 --- a/btcutil/net_noop.go +++ b/btcutil/net_noop.go @@ -11,10 +11,10 @@ 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 a no-op function that // returns an empty slice of net.Addr when building for systems that do not // allow access to net.InterfaceAddrs(). -func interfaceAddrs() ([]net.Addr, error) { +func InterfaceAddrs() ([]net.Addr, error) { return []net.Addr{}, nil }