func (b *LocalDialBreaker) Allowed(addr string) bool {
	if b.allowOutgoingAccess {
		return true
	}
	// If we're not allowing outgoing access, then only local addresses are
	// allowed to be dialed. Check for local only addresses.
	return isLocalAddr(addr)
}
// Allowed checks to see if a dial is allowed to happen, or returns an error
// stating why.
Allowed checks to see if a dial is allowed to happen, or returns an error
stating why.
// Allowed checks to see if a dial is allowed to happen or returns an error // stating why .
func (b *LocalDialBreaker) Allowed(addr string) bool {
	if b.allowOutgoingAccess {
		return true
	}
	return isLocalAddr(addr)
}
func ( b * LocalDialBreaker ) Allowed ( addr string ) bool { if b . allowOutgoingAccess { return true } return isLocalAddr ( addr ) }
Allowed checks to see if a dial is allowed to happen, or returns an error
stating why.
Allowed checks to see if a dial is allowed to happen or returns an error stating why .
// If we're not allowing outgoing access, then only local addresses are // allowed to be dialed. Check for local only addresses.