btpeer 0.3.0

Simple CLI tool to get peers from TCP/HTTP and UDP BitTorrent trackers
# btpeer

[![dependencies](https://deps.rs/repo/codeberg/yggverse/btpeer/status.svg)](https://deps.rs/repo/codeberg/yggverse/btpeer)
[![crates.io](https://img.shields.io/crates/v/btpeer.svg)](https://crates.io/crates/btpeer)

Simple CLI tool to get peers from BitTorrent trackers

## Features

Tracker protocols:

* [x] UDP
* [x] TCP/HTTP
* [ ] WS

Address family:

* [x] IPv4
* [x] IPv6
* [x] I2P

## Install

``` bash
cargo install btpeer
```

## Usage

Multiple `--http_tracker` and `--udp_tracker` destinations are supported!

``` bash
btpeer --help
```

### TCP/HTTP

``` bash
btpeer -H http://[202:68d0:f0d5:b88d:1d1a:555e:2f6b:3148]:6969/announce -i e337a880c4d0f552bab5b437fe1208d26130ccc5
```

#### SOCKS/Tor

``` bash
all_proxy=socks5h://127.0.0.1:9050 \
    btpeer -H http://some.onion/announce \
           -i e337a880c4d0f552bab5b437fe1208d26130ccc5
```

#### HTTP/I2P

``` bash
all_proxy=http://127.0.0.1:4444 \
    btpeer -H http://btrackrqkjp6kgelov5a3uxisis77ofxqt5nvy5hvvtoybjpmq4q.b32.i2p/announce \
           -i e337a880c4d0f552bab5b437fe1208d26130ccc5
```

### UDP

``` bash
btpeer -u [202:68d0:f0d5:b88d:1d1a:555e:2f6b:3148]:6969 -i e337a880c4d0f552bab5b437fe1208d26130ccc5
```