Skip to content
This repository was archived by the owner on May 20, 2020. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix typo
  • Loading branch information
zigo101 authored Apr 19, 2019
commit f3466ca4e576098cbe4e8177601e1c2885475d91
4 changes: 2 additions & 2 deletions tcpip/sample/tun_tcp_echo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down