From fe2146c5b3b1466951e63b1ba564d7a679006362 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Mon, 7 Sep 2015 17:46:17 +0200 Subject: [PATCH] Fix build breaks --- net/sockshandler.go | 4 ++-- net/vmesshandler.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sockshandler.go b/net/sockshandler.go index 49c919db..758b431b 100644 --- a/net/sockshandler.go +++ b/net/sockshandler.go @@ -15,7 +15,7 @@ func (server *SocksServer) Listen(port uint8) error { return err } server.accepting = true - go server.AcceptConns(listener) + go server.AcceptConnections(listener) return nil } @@ -30,6 +30,6 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) error { return nil } -func (server *SocksServer) HandleConnection(connection *net.Conn) error { +func (server *SocksServer) HandleConnection(connection net.Conn) error { return nil } diff --git a/net/vmesshandler.go b/net/vmesshandler.go index 8da73623..16b57eac 100644 --- a/net/vmesshandler.go +++ b/net/vmesshandler.go @@ -8,7 +8,7 @@ type VMessHandler struct { } func (*VMessHandler) Listen(port uint8) error { - listener, err := net.Listen("tcp", ":"+string(port)) + _, err := net.Listen("tcp", ":"+string(port)) if err != nil { return err }