// matches returns a list of the ACLs that addr belongs to.
matches returns a list of the ACLs that addr belongs to.
// matches returns a list of the ACLs that addr belongs to .
func (m *IPMap) matches(addr net.IP) (result []string) {
	result = append(result, m.addresses[addr.String()]...)
	for _, r := range m.ranges {
		if r.r.Contains(addr) {
			result = append(result, r.group)
		}
	}
	return result
}
func ( m * IPMap ) matches ( addr net . IP ) ( result [ ] string ) { result = append ( result , m . addresses [ addr . String ( ) ] ... ) for _ , r := range m . ranges { if r . r . Contains ( addr ) { result = append ( result , r . group ) } } return result }
matches returns a list of the ACLs that addr belongs to.
matches returns a list of the ACLs that addr belongs to .