diff --git a/.golangci.yml b/.golangci.yml index 5c439f7..93200b0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,4 +13,4 @@ linters-settings: # - prefix(github.com/sagernet/) # - default staticcheck: - go: '1.19' + go: '1.20' diff --git a/common/bufio/vectorised_unix.go b/common/bufio/vectorised_unix.go index f3379d0..b64ae3c 100644 --- a/common/bufio/vectorised_unix.go +++ b/common/bufio/vectorised_unix.go @@ -22,6 +22,8 @@ func (w *SyscallVectorisedWriter) WriteVectorised(buffers []*buf.Buffer) error { } var innerErr unix.Errno err := w.rawConn.Write(func(fd uintptr) (done bool) { + //nolint:staticcheck + //goland:noinspection GoDeprecation _, _, innerErr = unix.Syscall(unix.SYS_WRITEV, fd, uintptr(unsafe.Pointer(&iovecList[0])), uintptr(len(iovecList))) return innerErr != unix.EAGAIN && innerErr != unix.EWOULDBLOCK })