(num byte)
| 30 | } |
| 31 | |
| 32 | func randIPEndWith(num byte) byte { |
| 33 | if num == 0 { // 对于 /32 这种单独的 IP |
| 34 | return byte(0) |
| 35 | } |
| 36 | return byte(rand.Intn(int(num))) |
| 37 | } |
| 38 | |
| 39 | type IPRanges struct { |
| 40 | ips []*net.IPAddr |
no outgoing calls
no test coverage detected