Skip to content

Commit

Permalink
feat: Add iroh doctor utility (#986)
Browse files Browse the repository at this point in the history
* Add drderp util

* WIP

* WIP Add connect / connect <peer>

* finish connect first version

* Remove outdated comment // Use google stun server for now

* Add send, recv and echo variants of the test

* Add option to use local derper

* Add remote endpoints to help cmd

Also run tests in a loop

* Use new local_endpoints fn to figure out local endpoints

* Split up commands

There is now
- report
- accept
- connect

Only the accept side performs the test

* Set default size to a larger value

Now that we got progress we can watch it better

* make drderp an iroh subcommand

* remane to just doctor

* working gui on connect side

also remove min_size, max_size stuff, too complicated. Now just size

* dry the progres stuff a bit

* PR review

- add option to use local key
- move doctor.rs to top level
- add docs

* fix parsing of local keypair option

* Add some metrics counters to the doctor (#1008)

* Add some metrics counters to the doctor

* Add counters to distinguish between ipv4 and ipv6 during sending

Also switch to reporting bytes instead of just packets.

* clippy
  • Loading branch information
rklaehn committed May 16, 2023
1 parent 3142912 commit 4fc70f5
Show file tree
Hide file tree
Showing 12 changed files with 758 additions and 10 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "IPFS reimagined"
license = "MIT/Apache-2.0"
authors = ["dignifiedquire <me@dignifiedquire.com>", "n0 team"]
repository = "https://github.com/n0-computer/iroh"
default-run = "iroh"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.65"
Expand Down

0 comments on commit 4fc70f5

Please sign in to comment.