Discovery via DHT in iroh uses the BitTorrent Mainline distributed hash table (DHT) to publish & resolve EndpointIds. DHT Discovery is not enabled by default, and must be enabled by the user. You’ll need to add theDocumentation Index
Fetch the complete documentation index at: https://docs.iroh.computer/llms.txt
Use this file to discover all available pages before exploring further.
discovery-pkarr-dht feature flag to your Cargo.toml to use it.
Endpoint::empty_builder method. This requires specifying a RelayMode, which in this example we will keep default.