From 8d87bb83a60f7ba0f11eae606d5aa6b6bc901c4a Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 9 Dec 2014 00:26:06 -0600 Subject: [PATCH] Refine connection status flags --- connection.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.48.1