Browse Source

fix a typo

pull/1269/head
Darien Raymond 6 years ago
parent
commit
ed1d713ef4
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 4
      transport/internet/sockopt_windows.go

4
transport/internet/sockopt_windows.go

@ -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…
Cancel
Save