aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-07-27 23:47:22 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-07-27 23:47:22 +0200
commit9c8cec0736e672ba0024938c5e940c8f709d7ee2 (patch)
tree14de06c600490762b1eb5e03d653a3f431ee8515 /cmd
parent723c7ae2fb6680a36cd507514c1e90d40d83d334 (diff)
Update PeerID
Diffstat (limited to 'cmd')
-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,
}