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:
parent
fe60260d48
commit
cf11bf0498
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user