mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
fix a typo
This commit is contained in:
parent
1e4547e262
commit
ed1d713ef4
@ -24,7 +24,7 @@ func setTFO(fd syscall.Handle, settings SocketConfig_TCPFastOpenState) error {
|
||||
|
||||
func applyOutboundSocketOptions(network string, address string, fd uintptr, config *SocketConfig) error {
|
||||
if isTCPSocket(network) {
|
||||
if err := setTFO(syscall.Hanle(fd), config.Tfo); err != nil {
|
||||
if err := setTFO(syscall.Handle(fd), config.Tfo); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ func applyOutboundSocketOptions(network string, address string, fd uintptr, conf
|
||||
|
||||
func applyInboundSocketOptions(network string, fd uintptr, config *SocketConfig) error {
|
||||
if isTCPSocket(network) {
|
||||
if err := setTFO(syscall.Hanle(fd), config.Tfo); err != nil {
|
||||
if err := setTFO(syscall.Handle(fd), config.Tfo); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user