do not retry on region not found

This commit is contained in:
2026-04-14 17:28:57 +08:00
parent c07e5b835e
commit 83279e0253
4 changed files with 20 additions and 6 deletions
+4
View File
@@ -1,5 +1,6 @@
use crate::config::{ClientConfig, Profile};
use crate::task::run;
use common::strings::REGION_NOT_FOUND;
use communicator::{ClientManager, Identity, TunnelEndpoint, TunnelListener, connect_tunnel};
use lazy_static::lazy_static;
use log::{LevelFilter, error, info};
@@ -179,6 +180,9 @@ async fn main() -> anyhow::Result<()> {
.await;
}
Err(error) => {
if error.to_string().contains(REGION_NOT_FOUND) {
return;
}
error!("{}", error);
}
_ => {}