From: Matt Joiner Date: Tue, 9 Dec 2014 06:26:06 +0000 (-0600) Subject: Refine connection status flags X-Git-Tag: v1.0.0~1392 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8d87bb83a60f7ba0f11eae606d5aa6b6bc901c4a;p=btrtrc.git Refine connection status flags --- diff --git a/connection.go b/connection.go index 05b037ab..eaabaaca 100644 --- a/connection.go +++ b/connection.go @@ -176,8 +176,11 @@ func (cn *connection) WriteStatus(w io.Writer) { if len(cn.Requests) != 0 { c('D') } + if !cn.Interested { + c('z') + } if cn.PeerChoked && cn.Interested { - c('d') + c('i') } if !cn.Choked { if cn.PeerInterested {