btcutil: export interfaceAddr

This commit is contained in:
Calvin Kim 2025-11-12 15:20:54 +01:00 committed by Olaoluwa Osuntokun
parent 153bf6d828
commit c90e88ee23
2 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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()
}