Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/receiver/tcp_handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func readTCPHandshake(conn net.Conn) (host string, err error) {
if hostLen != 0 {
hostBytes := make([]byte, hostLen)
if _, err = io.ReadFull(conn, hostBytes); err != nil {
return string(hostBytes), err
return "", err
}
return string(hostBytes), nil
}
return "", nil
default:
Expand Down
Loading