Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions aether/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ async fn run_gool(
secondary: account::Identity,
listen: SocketAddr,
) -> Result<()> {
// Asked once, before the loop: a reconnect has to be able to rescan on its
// own, and there is nobody at the terminal to answer a prompt hours later.
let mode_str = select_scan_mode_str().await;
let ip = select_ip_version().await;

let mut last_peer: Option<SocketAddr> = None;
let mut last_inner: Option<SocketAddr> = None;
let mut consecutive_fails: u32 = 0;
Expand All @@ -157,8 +162,6 @@ async fn run_gool(
let pair = match peer {
Some(p) => Some((p, last_inner)),
None => {
let mode_str = select_scan_mode_str().await;
let ip = select_ip_version().await;
match select_wg_peers(&primary, &mode_str, ip, 2).await {
Ok(found) => {
consecutive_fails = 0;
Expand Down