1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

Suppress lint error (#480)

This commit is contained in:
Loyalsoldier 2020-12-02 21:07:58 +08:00 committed by GitHub
parent fe60260d48
commit cf11bf0498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -9,9 +9,9 @@ import (
const (
// For incoming connections.
TCP_FASTOPEN = 23
TCP_FASTOPEN = 23 // nolint: golint,stylecheck
// For out-going connections.
TCP_FASTOPEN_CONNECT = 30
TCP_FASTOPEN_CONNECT = 30 // nolint: golint,stylecheck
)
func bindAddr(fd uintptr, ip []byte, port uint32) error {

View File

@ -1,11 +1,9 @@
package internet
import (
"syscall"
)
import "syscall"
const (
TCP_FASTOPEN = 15
TCP_FASTOPEN = 15 // nolint: golint,stylecheck
)
func setTFO(fd syscall.Handle, settings SocketConfig_TCPFastOpenState) error {