From d999bf62e28ede47f8f48f76132dfab2d01b9b5d Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 9 Jan 2017 00:14:44 +0100 Subject: [PATCH] fix link warnings --- proxy/socks/server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy/socks/server.go b/proxy/socks/server.go index 9c6b2de23..56226defa 100644 --- a/proxy/socks/server.go +++ b/proxy/socks/server.go @@ -91,7 +91,9 @@ func (v *Server) Start() error { v.tcpListener = listener v.tcpMutex.Unlock() if v.config.UdpEnabled { - v.listenUDP() + if err := v.listenUDP(); err != nil { + return err + } } return nil } @@ -139,13 +141,11 @@ func (v *Server) handleConnection(connection internet.Connection) { } } -func (v *Server) handleUDP() error { +func (v *Server) handleUDP() { // The TCP connection closes after v method returns. We need to wait until // the client closes it. // TODO: get notified from UDP part <-time.After(5 * time.Minute) - - return nil } func (v *Server) transport(reader io.Reader, writer io.Writer, session *proxy.SessionInfo) {