From b2c50217ea7fc15e46b7b113f996ee72b7adbd94 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Jun 2016 16:18:08 +0200 Subject: Add missing fields --- meta/tracker.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'meta') diff --git a/meta/tracker.go b/meta/tracker.go index 30aa797..b56fe92 100644 --- a/meta/tracker.go +++ b/meta/tracker.go @@ -12,8 +12,8 @@ const ( ) type TrackerRequest struct { - InfoHash [20]byte // info_hash - PeerID [20]byte // peer_id + InfoHash []byte // info_hash + PeerID []byte // peer_id Port int Uploaded int Downloaded int @@ -22,6 +22,9 @@ type TrackerRequest struct { NoPeerID bool Event Event IP net.IPAddr + NumWant int + Key []byte + TrackerID []byte } type TrackerResponse struct { -- cgit v1.2.3