Skip to content

Commit

Permalink
Don't log EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Feb 7, 2015
1 parent 539ffad commit 609d633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bufio"
"bytes"
"fmt"
"io"
"log"
"net"
"strconv"
Expand Down Expand Up @@ -101,7 +102,7 @@ func (p *Conn) LocalAddr() net.Addr {
// before Read()
func (p *Conn) RemoteAddr() net.Addr {
p.once.Do(func() {
if err := p.checkPrefix(); err != nil {
if err := p.checkPrefix(); err != nil && err != io.EOF {
log.Printf("[ERR] Failed to read proxy prefix: %v", err)
}
})
Expand Down

0 comments on commit 609d633

Please sign in to comment.