Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Dec 19, 2024
1 parent 5ee3b2a commit b9b01de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/warp-ipfs/examples/identity-interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ struct Opt {
import: Option<PathBuf>,
#[clap(long)]
phrase: Option<String>,
#[clap(long)]
bootstrap_preload: Vec<Multiaddr>,
}

async fn account(
Expand Down Expand Up @@ -93,6 +95,8 @@ async fn account(
*config.enable_relay_mut() = false;
}

config.ipfs_setting_mut().preload = opt.bootstrap_preload.clone();

if opt.upnp {
config.ipfs_setting_mut().portmapping = true;
}
Expand Down

0 comments on commit b9b01de

Please sign in to comment.