mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
Suppress lint error (#480)
This commit is contained in:
parent
fe60260d48
commit
cf11bf0498
@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// For incoming connections.
|
// For incoming connections.
|
||||||
TCP_FASTOPEN = 23
|
TCP_FASTOPEN = 23 // nolint: golint,stylecheck
|
||||||
// For out-going connections.
|
// For out-going connections.
|
||||||
TCP_FASTOPEN_CONNECT = 30
|
TCP_FASTOPEN_CONNECT = 30 // nolint: golint,stylecheck
|
||||||
)
|
)
|
||||||
|
|
||||||
func bindAddr(fd uintptr, ip []byte, port uint32) error {
|
func bindAddr(fd uintptr, ip []byte, port uint32) error {
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
package internet
|
package internet
|
||||||
|
|
||||||
import (
|
import "syscall"
|
||||||
"syscall"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TCP_FASTOPEN = 15
|
TCP_FASTOPEN = 15 // nolint: golint,stylecheck
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTFO(fd syscall.Handle, settings SocketConfig_TCPFastOpenState) error {
|
func setTFO(fd syscall.Handle, settings SocketConfig_TCPFastOpenState) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user