1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

remove bufio

This commit is contained in:
V2Ray 2015-09-17 22:05:47 +02:00
parent 751160940b
commit 8ed15ce847

View File

@ -1,7 +1,7 @@
package socks
import (
"bufio"
_ "bufio"
"errors"
"io"
"net"
@ -62,7 +62,7 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) {
func (server *SocksServer) HandleConnection(connection net.Conn) error {
defer connection.Close()
reader := bufio.NewReader(connection)
reader := connection.(io.Reader)
auth, auth4, err := socksio.ReadAuthentication(reader)
if err != nil && err != socksio.ErrorSocksVersion4 {