Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed Jan 10, 2025
1 parent 12000bd commit 0eb96a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/http/http_readlimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/zmap/zcrypto/tls"
"github.com/zmap/zgrab2"
"github.com/zmap/zgrab2/lib/http"
"golang.org/x/sys/unix"
)

// BEGIN Taken from handshake_server_test.go -- certs for TLS server
Expand Down Expand Up @@ -87,7 +88,7 @@ func (cfg *readLimitTestConfig) runFakeHTTPServer(t *testing.T) {
Control: func(network, address string, c syscall.RawConn) error {
var opErr error
if err := c.Control(func(fd uintptr) {
opErr = syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_REUSEPORT, 1)
opErr = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, unix.SO_REUSEPORT, 1)
}); err != nil {
return err
}
Expand Down

0 comments on commit 0eb96a9

Please sign in to comment.