Skip to content

Commit 8da86d7

Browse files
authored
Merge pull request #18 from omasyo/patch-1
Update local discovery documentation for address lookup
2 parents e1834d9 + 436eb72 commit 8da86d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

connecting/local-discovery.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ You'll need to add the `discovery-local-network` feature flag to your
1717
```toml
1818
[dependencies]
1919
# Make sure to use the most recent version here instead of nn. (at the time of writing: 0.32)
20-
iroh = { version = "0.nn", features = ["discovery-local-network"] }
20+
iroh = { version = "0.nn", features = ["address-lookup-mdns"] }
2121
```
2222

2323
Then configure your endpoint to use local discovery concurrently with the default DNS discovery:
2424

2525
```rust
2626
use iroh::Endpoint;
2727

28-
let mdns = iroh::discovery::mdns::MdnsDiscovery::builder();
28+
let mdns = iroh::address_lookup::mdns::MdnsAddressLookup::builder();
2929
let ep = Endpoint::builder()
30-
.discovery(mdns)
30+
.address_lookup(mdns)
3131
.bind()
3232
.await?;
3333
```
@@ -37,7 +37,7 @@ presence on the local network, and listen for other endpoints doing the same. Wh
3737
another endpoint is discovered, the dialing information is exchanged, and a
3838
connection can be established directly over the local network without needing a relay.
3939

40-
For more information on how mDNS discovery works, see the [mDNS documentation](https://docs.rs/iroh/latest/iroh/discovery/mdns/index.html).
40+
For more information on how mDNS discovery works, see the [mDNS documentation](https://docs.rs/iroh/latest/iroh/address_lookup/mdns/index.html).
4141

4242
## Bluetooth
4343

0 commit comments

Comments
 (0)