Skip to content

Commit

Permalink
chore: Enable quic
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Nov 20, 2023
1 parent 68ca54f commit 7206c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/warp-ipfs/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ pub struct IpfsSetting {
/// Used for testing with a memory transport
pub memory_transport: bool,
pub dht_client: bool,
pub disable_quic: bool,
}

#[derive(Debug, Clone, Copy, Serialize, Deserialize, Default)]
Expand Down Expand Up @@ -284,7 +285,7 @@ impl Default for Config {
path: None,
network: Network::Ipfs,
bootstrap: Bootstrap::Ipfs,
listen_on: ["/ip4/0.0.0.0/tcp/0", "/ip6/::/tcp/0"]
listen_on: ["/ip4/0.0.0.0/tcp/0", "/ip4/0.0.0.0/udp/0/quic-v1"]
.iter()
.filter_map(|s| Multiaddr::from_str(s).ok())
.collect::<Vec<_>>(),
Expand Down
1 change: 1 addition & 0 deletions extensions/warp-ipfs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ impl WarpIpfs {
.with_rendezvous_client()
.set_transport_configuration(TransportConfig {
yamux_update_mode: UpdateMode::Read,
enable_quic: !config.ipfs_setting.disable_quic,
..Default::default()
});

Expand Down

0 comments on commit 7206c1a

Please sign in to comment.