func (this *iplist) AddIPs(ips []string) error {
	this.mu.Lock()
	defer this.mu.Unlock()

	if this.ipm == nil {
		this.ipm = make(map[[4]byte]struct{})
	}

	for _, ip := range ips {
		iplist, err := ParseIP(ip)
		if err != nil {
			return err
		}

		for _, ip2 := range iplist {
			var tmp [4]byte
			copy(tmp[:], ip2.To4())
			this.ipm[tmp] = struct{}{}
		}
	}

	return nil
}
// AddIPs adds a list of IP addresses. Each of the IPs in the list are parsed and
// expanded using ParseIP.
AddIPs adds a list of IP addresses. Each of the IPs in the list are parsed and
expanded using ParseIP.
// AddIPs adds a list of IP addresses . Each of the IPs in the list are parsed and // expanded using ParseIP .
func (this *iplist) AddIPs(ips []string) error {
	this.mu.Lock()
	defer this.mu.Unlock()
	if this.ipm == nil {
		this.ipm = make(map[[4]byte]struct{})
	}
	for _, ip := range ips {
		iplist, err := ParseIP(ip)
		if err != nil {
			return err
		}
		for _, ip2 := range iplist {
			var tmp [4]byte
			copy(tmp[:], ip2.To4())
			this.ipm[tmp] = struct{}{}
		}
	}
	return nil
}
func ( this * iplist ) AddIPs ( ips [ ] string ) error { this . mu . Lock ( ) defer this . mu . Unlock ( ) if this . ipm == nil { this . ipm = make ( map [ [ 4 ] byte ] struct { } ) } for _ , ip := range ips { iplist , err := ParseIP ( ip ) if err != nil { return err } for _ , ip2 := range iplist { var tmp [ 4 ] byte copy ( tmp [ : ] , ip2 . To4 ( ) ) this . ipm [ tmp ] = struct { } { } } } return nil }
AddIPs adds a list of IP addresses.
AddIPs adds a list of IP addresses .