Chore: sync necessary changes from premium

This commit is contained in:
Dreamacro
2020-09-21 22:22:07 +08:00
parent 10f9571c9e
commit 8766287e72
3 changed files with 8 additions and 9 deletions

View File

@ -121,7 +121,7 @@ func ipToUint(ip net.IP) uint32 {
}
func uintToIP(v uint32) net.IP {
return net.IPv4(byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
return net.IP{byte(v >> 24), byte(v >> 16), byte(v >> 8), byte(v)}
}
// New return Pool instance