File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed
Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -77,26 +77,6 @@ where N: NetworkBehaviour<ToSwarm = Infallible> + Send + Sync
7777 )
7878 }
7979
80- // #[must_use]
81- // /// Set the transport configuration for the IPFS node.
82- // pub fn set_transport_configuration(
83- // self,
84- // transport: rust_ipfs::p2p::TransportConfig,
85- // ) -> Self {
86- // Self(self.0.set_transport_configuration(transport))
87- // }
88-
89- // #[must_use]
90- // /// Disable TLS for the IPFS node.
91- // pub fn disable_tls(self) -> Self {
92- // let transport = rust_ipfs::p2p::TransportConfig {
93- // enable_quic: false,
94- // enable_secure_websocket: false,
95- // ..Default::default()
96- // };
97- // Self(self.0.set_transport_configuration(transport))
98- // }
99-
10080 /// Start the IPFS node.
10181 ///
10282 /// ## Errors
@@ -127,7 +107,8 @@ impl HermesIpfs {
127107 . with_default ( )
128108 . set_default_listener ( )
129109 // TODO(saibatizoku): Re-Enable default transport config when libp2p Cert bug is fixed
130- //.disable_tls()
110+ // TODO(rafal-ch): TLS is disabled by default, we can enable it by calling
111+ // `IpfsBuilder::enable_secure...()` .enable_secure_websocket()
131112 . start ( )
132113 . await ?;
133114 Ok ( HermesIpfs { node } )
You can’t perform that action at this time.
0 commit comments