rebuild ip and rm old file

This commit is contained in:
mz
2021-11-10 23:58:40 +08:00
parent 28d5d89e85
commit 48012f513a
7 changed files with 91 additions and 421 deletions

View File

@@ -45,8 +45,9 @@ func checkPingDefault() {
}
}
func NewPing(ips []*net.IPAddr) *Ping {
func NewPing() *Ping {
checkPingDefault()
ips := loadIPRanges()
return &Ping{
wg: &sync.WaitGroup{},
m: &sync.Mutex{},