From 8712cc25d027c3f83092019a6d863505c9ea012b Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 8 Nov 2017 19:28:37 +1100 Subject: [PATCH] Make Client.PeerID return [20]byte --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 1779c289..ee2c8a3a 100644 --- a/client.go +++ b/client.go @@ -90,8 +90,8 @@ func (cl *Client) SetIPBlockList(list iplist.Ranger) { } } -func (cl *Client) PeerID() string { - return string(cl.peerID[:]) +func (cl *Client) PeerID() [20]byte { + return cl.peerID } type torrentAddr string -- 2.48.1