forked from External/ergo
get rid of editableCommand
This commit is contained in:
parent
d1a299792e
commit
77d053ccac
4 changed files with 39 additions and 43 deletions
|
|
@ -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()),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue