Skip to content

Commit

Permalink
fix build break
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Sep 15, 2015
1 parent d1d71e9 commit 0c1277c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions net/socks/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package socks
import (
"bufio"
"errors"
"io"
"net"
"strconv"

Expand Down Expand Up @@ -128,15 +129,15 @@ func (server *SocksServer) HandleConnection(connection net.Conn) error {
return nil
}

func (server *SocksServer) dumpInput(conn net.Conn, input chan<- []byte, finish chan<- bool) {
v2net.ReaderToChan(input, conn)
func (server *SocksServer) dumpInput(reader io.Reader, input chan<- []byte, finish chan<- bool) {
v2net.ReaderToChan(input, reader)
close(input)
log.Debug("Socks input closed")
finish <- true
}

func (server *SocksServer) dumpOutput(conn net.Conn, output <-chan []byte, finish chan<- bool) {
v2net.ChanToWriter(conn, output)
func (server *SocksServer) dumpOutput(writer io.Writer, output <-chan []byte, finish chan<- bool) {
v2net.ChanToWriter(writer, output)
log.Debug("Socks output closed")
finish <- true
}

0 comments on commit 0c1277c

Please sign in to comment.