summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/sample/tun_tcp_connect/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip/sample/tun_tcp_connect/main.go')
-rw-r--r--pkg/tcpip/sample/tun_tcp_connect/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/sample/tun_tcp_connect/main.go b/pkg/tcpip/sample/tun_tcp_connect/main.go
index 67e8f0b9e..327a79f48 100644
--- a/pkg/tcpip/sample/tun_tcp_connect/main.go
+++ b/pkg/tcpip/sample/tun_tcp_connect/main.go
@@ -165,7 +165,7 @@ func main() {
// Bind if a port is specified.
if localPort != 0 {
- if err := ep.Bind(tcpip.FullAddress{0, "", localPort}, nil); err != nil {
+ if err := ep.Bind(tcpip.FullAddress{0, "", localPort}); err != nil {
log.Fatal("Bind failed: ", err)
}
}