github.com/mit-dci/lit@v0.0.0-20221102210550-8c3d3b49f2ce/btcutil/net.go (about)

     1  // Copyright (c) 2013-2014 The btcsuite developers
     2  // Use of this source code is governed by an ISC
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build !appengine
     6  
     7  package btcutil
     8  
     9  import (
    10  	"net"
    11  )
    12  
    13  // interfaceAddrs returns a list of the system's network interface addresses.
    14  // It is wrapped here so that we can substitute it for other functions when
    15  // building for systems that do not allow access to net.InterfaceAddrs().
    16  func interfaceAddrs() ([]net.Addr, error) {
    17  	return net.InterfaceAddrs()
    18  }