Update securego/gosec from 2.23.0 to 2.25.0 (#2161)

This commit is contained in:
Erik Dubbelboer
2026-03-20 15:27:24 +09:00
committed by GitHub
parent 4001e91911
commit 87f0fe1394
5 changed files with 74 additions and 24 deletions
+3 -5
View File
@@ -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
}