diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 8e0b467..0e04143 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -7,7 +7,6 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" "math/rand" "net" "net/http" @@ -183,7 +182,7 @@ func (s *Server) ListenAndServe() error { c.cancel() } - _, err = ioutil.ReadAll(stream) + _, err = stream.Read(make([]byte, 3000)) if err != nil { ln.Error(err) c.cancel()