github.com/mit-dci/lit@v0.0.0-20221102210550-8c3d3b49f2ce/btcutil/net_noop.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 a no-op function that 15 // returns an empty slice of net.Addr when building for systems that do not 16 // allow access to net.InterfaceAddrs(). 17 func interfaceAddrs() ([]net.Addr, error) { 18 return []net.Addr{}, nil 19 }