net_noop.go raw

   1  // +build appengine
   2  
   3  package util
   4  
   5  /*
   6  import (
   7  	"net"
   8  )
   9  
  10  // interfaceAddrs returns a list of the system's network interface addresses. It is wrapped here so that we can
  11  // substitute it for a no-op function that returns an empty slice of net.Addr when building for systems that do not
  12  // allow access to net.InterfaceAddrs().
  13  func interfaceAddrs() ([]net.Addr, error) {
  14  	return []net.Addr{}, nil
  15  }
  16  */
  17