Skip to content

Commit 57fd679

Browse files
Change two variable
1 parent dc0ecc4 commit 57fd679

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 usedIp []string
35-
var unusedIp []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-
usedIp = append(usedIp, data)
44-
fmt.Println("已使用IP:", usedIp)
43+
usedIP = append(usedIP, data)
44+
fmt.Println("已使用IP:", usedIP)
4545
} else {
46-
unusedIp = append(unusedIp, data)
47-
fmt.Println("未使用IP:", unusedIp)
46+
unusedIP = append(unusedIP, data)
47+
fmt.Println("未使用IP:", unusedIP)
4848
}
4949
}(tmp)
5050
}

0 commit comments

Comments
 (0)