Skip to content

Commit 7853705

Browse files
authored
Merge pull request #1 from XuHenghenglumia/master
Change two variable
2 parents 285c966 + 57fd679 commit 7853705

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lmap.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ func main() {
3131

3232
func CheckIP() {
3333
defer wg.Done()
34-
var use []string
35-
var notuse []string
34+
var usedIP []string
35+
var unusedIP []string
3636
t := time.Now()
3737
hosts, _ := hosts("10.150.1.1/24")
3838
for _, ip := range hosts {
3939
tmp := ip
4040
go func(data string) {
4141
bool := ping(data)
4242
if bool {
43-
use = append(use, data)
44-
fmt.Println("已使用IP:", use)
43+
usedIP = append(usedIP, data)
44+
fmt.Println("已使用IP:", usedIP)
4545
} else {
46-
notuse = append(notuse, data)
47-
fmt.Println("未使用IP:", notuse)
46+
unusedIP = append(unusedIP, data)
47+
fmt.Println("未使用IP:", unusedIP)
4848
}
4949
}(tmp)
5050
}

0 commit comments

Comments
 (0)