aboutsummaryrefslogtreecommitdiff
path: root/cmd/btcheck/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/btcheck/main.go')
-rw-r--r--cmd/btcheck/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/btcheck/main.go b/cmd/btcheck/main.go
index 6d79e8b..6b83704 100644
--- a/cmd/btcheck/main.go
+++ b/cmd/btcheck/main.go
@@ -28,10 +28,9 @@ func main() {
fmt.Printf("%d %d %d %x %v\n", i, off, n, p, p.Check(buf[:n]))
}
- id, _ := peer.NewID()
req := tracker.Request{
InfoHash: tor.Info.Hash(),
- PeerID: []byte(id),
+ PeerID: peer.NewID(),
Compact: true,
Port: 6881,
}