func discoverIP() (string, error) {
	addrs, err := discoverNetworkAddresses()
	if err != nil {
		return "", errors.Wrap(err, "while detecting external ip address")
	}
	if len(addrs) == 0 {
		return "", errors.New("No external ip address found; please set `GUBER_ADVERTISE_ADDRESS`")
	}
	return addrs[0], err
}
// Returns the first external ip address it finds
Returns the first external ip address it finds
// Returns the first external ip address it finds
func discoverIP() (string, error) {
	addrs, err := discoverNetworkAddresses()
	if err != nil {
		return "", errors.Wrap(err, "while detecting external ip address")
	}
	if len(addrs) == 0 {
		return "", errors.New("No external ip address found; please set `GUBER_ADVERTISE_ADDRESS`")
	}
	return addrs[0], err
}
func discoverIP ( ) ( string , error ) { addrs , err := discoverNetworkAddresses ( ) if err != nil { return " " , errors . Wrap ( err , " " ) } if len ( addrs ) == 0 { return " " , errors . New ( " " ) } return addrs [ 0 ] , err }
Returns the first external ip address it finds
Returns the first external ip address it finds