Skip to content

Commit

Permalink
Merge branch 'dev' into emoji_reply_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 authored Jan 29, 2024
2 parents 90d54b8 + 6f22f75 commit a8a3973
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 16 additions & 3 deletions common/src/warp_runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,22 @@ impl From<&DiscoveryMode> for Discovery {
},
},
DiscoveryMode::Shuttle => {
let addresses = Vec::from_iter(["/ip4/104.236.194.35/tcp/34053/p2p/12D3KooWJSes8386p2T1sMeZ2DzsNJThKkZWbj4US6uPMpEgBTHu"
.parse()
.expect("valid addr")]);
let env_addrs = std::env::var("SHUTTLE_ADDR_POINT")
.map(|val| {
val.split(',')
.filter_map(|addr_str| addr_str.parse::<_>().ok())
.collect::<Vec<_>>()
})
.unwrap_or_default();

let addresses = match env_addrs.is_empty() {
true => Vec::from_iter(["/ip4/104.236.194.35/tcp/34053/p2p/12D3KooWJSes8386p2T1sMeZ2DzsNJThKkZWbj4US6uPMpEgBTHu"
.parse()
.expect("valid addr")]),
false => env_addrs
};

log::debug!("shuttle addresses: {:?}", addresses);

Discovery::Shuttle { addresses }
}
Expand Down
3 changes: 3 additions & 0 deletions icons/src/icons/outline/document-audio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a8a3973

Please sign in to comment.