mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Update securego/gosec from 2.23.0 to 2.25.0 (#2161)
This commit is contained in:
+3
-5
@@ -2,6 +2,7 @@ package fasthttp
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"encoding/binary"
|
||||
"net"
|
||||
"sync"
|
||||
)
|
||||
@@ -136,10 +137,7 @@ func ip2uint32(ip net.IP) uint32 {
|
||||
}
|
||||
|
||||
func uint322ip(ip uint32) net.IP {
|
||||
b := make([]byte, 4)
|
||||
b[0] = byte(ip >> 24)
|
||||
b[1] = byte(ip >> 16)
|
||||
b[2] = byte(ip >> 8)
|
||||
b[3] = byte(ip)
|
||||
b := make(net.IP, net.IPv4len)
|
||||
binary.BigEndian.PutUint32(b, ip)
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user