func (r *Registry) List() (ret []net.IP, err error) {
	r.lock.Lock()
	defer r.lock.Unlock()

	contents, err := r.load()
	if err != nil {
		return nil, err
	}
	for stringIP := range contents.IPs {
		ret = append(ret, net.ParseIP(stringIP))
	}
	return
}
// List returns a list of all tracked IPs
List returns a list of all tracked IPs
// List returns a list of all tracked IPs
func (r *Registry) List() (ret []net.IP, err error) {
	r.lock.Lock()
	defer r.lock.Unlock()
	contents, err := r.load()
	if err != nil {
		return nil, err
	}
	for stringIP := range contents.IPs {
		ret = append(ret, net.ParseIP(stringIP))
	}
	return
}
func ( r * Registry ) List ( ) ( ret [ ] net . IP , err error ) { r . lock . Lock ( ) defer r . lock . Unlock ( ) contents , err := r . load ( ) if err != nil { return nil , err } for stringIP := range contents . IPs { ret = append ( ret , net . ParseIP ( stringIP ) ) } return }
List returns a list of all tracked IPs
List returns a list of all tracked IPs