From f7c8c400819157e2e5fa235022ae09743d6963e9 Mon Sep 17 00:00:00 2001 From: "rui.zheng" Date: Thu, 15 Sep 2016 08:35:09 +0800 Subject: [PATCH] fix connection close --- forward.go | 1 + main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/forward.go b/forward.go index bf807b04..863795cf 100644 --- a/forward.go +++ b/forward.go @@ -100,6 +100,7 @@ func handleUdpForwardTunnel(laddr, raddr *net.UDPAddr, rChan, wChan chan *gosock } break } + defer tun.Close() glog.V(LINFO).Infof("[udp] %s <-> %s", laddr, raddr) diff --git a/main.go b/main.go index df628b79..5f6e9900 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ const ( ) const ( - Version = "2.1-dev" + Version = "2.1-rc1" ) var (