mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-07 07:01:20 +00:00
Merge branch 'master' into rand-feature
This commit is contained in:
commit
9c3fd0ef2b
@ -76,10 +76,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
noise::Config::new,
|
noise::Config::new,
|
||||||
yamux::Config::default,
|
yamux::Config::default,
|
||||||
)?
|
)?
|
||||||
.with_quic_config(|mut cfg| {
|
.with_quic()
|
||||||
cfg.support_draft_29 = true;
|
|
||||||
cfg
|
|
||||||
})
|
|
||||||
.with_dns()?
|
.with_dns()?
|
||||||
.with_behaviour(|key| {
|
.with_behaviour(|key| {
|
||||||
behaviour::Behaviour::new(key.public(), opt.enable_kademlia, opt.enable_autonat)
|
behaviour::Behaviour::new(key.public(), opt.enable_kademlia, opt.enable_autonat)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user