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