From bf8fd55e98d4cc367078eeb4e36d534cd38586a4 Mon Sep 17 00:00:00 2001 From: Go101 <22589241+go101@users.noreply.github.com> Date: Fri, 19 Apr 2019 05:26:43 -0400 Subject: [PATCH 1/2] fix typo --- tcpip/sample/tun_tcp_connect/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpip/sample/tun_tcp_connect/main.go b/tcpip/sample/tun_tcp_connect/main.go index 4cce4651..e220bf13 100644 --- a/tcpip/sample/tun_tcp_connect/main.go +++ b/tcpip/sample/tun_tcp_connect/main.go @@ -161,9 +161,9 @@ func main() { // Create TCP endpoint. var wq waiter.Queue - ep, e := s.NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &wq) + ep, err := s.NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &wq) if err != nil { - log.Fatal(e) + log.Fatal(err) } // Bind if a port is specified. From f3466ca4e576098cbe4e8177601e1c2885475d91 Mon Sep 17 00:00:00 2001 From: Go101 <22589241+go101@users.noreply.github.com> Date: Fri, 19 Apr 2019 05:27:06 -0400 Subject: [PATCH 2/2] fix typo --- tcpip/sample/tun_tcp_echo/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpip/sample/tun_tcp_echo/main.go b/tcpip/sample/tun_tcp_echo/main.go index 494f62f4..08615d5b 100644 --- a/tcpip/sample/tun_tcp_echo/main.go +++ b/tcpip/sample/tun_tcp_echo/main.go @@ -161,9 +161,9 @@ func main() { // Create TCP endpoint, bind it, then start listening. var wq waiter.Queue - ep, e := s.NewEndpoint(tcp.ProtocolNumber, proto, &wq) + ep, err := s.NewEndpoint(tcp.ProtocolNumber, proto, &wq) if err != nil { - log.Fatal(e) + log.Fatal(err) } defer ep.Close()