fix build break

pull/182/head^2
V2Ray 2015-09-15 21:45:04 +02:00
parent d1d71e9e38
commit 0c1277c439
1 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@ package socks
import ( import (
"bufio" "bufio"
"errors" "errors"
"io"
"net" "net"
"strconv" "strconv"
@ -128,15 +129,15 @@ func (server *SocksServer) HandleConnection(connection net.Conn) error {
return nil return nil
} }
func (server *SocksServer) dumpInput(conn net.Conn, input chan<- []byte, finish chan<- bool) { func (server *SocksServer) dumpInput(reader io.Reader, input chan<- []byte, finish chan<- bool) {
v2net.ReaderToChan(input, conn) v2net.ReaderToChan(input, reader)
close(input) close(input)
log.Debug("Socks input closed") log.Debug("Socks input closed")
finish <- true finish <- true
} }
func (server *SocksServer) dumpOutput(conn net.Conn, output <-chan []byte, finish chan<- bool) { func (server *SocksServer) dumpOutput(writer io.Writer, output <-chan []byte, finish chan<- bool) {
v2net.ChanToWriter(conn, output) v2net.ChanToWriter(writer, output)
log.Debug("Socks output closed") log.Debug("Socks output closed")
finish <- true finish <- true
} }