1
0
Fork 0
forked from External/ergo

get rid of editableCommand

This commit is contained in:
Jeremy Latt 2014-03-08 14:24:17 -08:00
parent d1a299792e
commit 77d053ccac
4 changed files with 39 additions and 43 deletions

View file

@ -20,7 +20,7 @@ type Socket struct {
writer *bufio.Writer
}
func NewSocket(conn net.Conn, commands chan<- editableCommand) *Socket {
func NewSocket(conn net.Conn, commands chan<- Command) *Socket {
socket := &Socket{
conn: conn,
reader: bufio.NewReader(conn),
@ -43,7 +43,7 @@ func (socket *Socket) Close() {
}
}
func (socket *Socket) readLines(commands chan<- editableCommand) {
func (socket *Socket) readLines(commands chan<- Command) {
commands <- &ProxyCommand{
hostname: AddrLookupHostname(socket.conn.RemoteAddr()),
}