feat: implement graceful shutdown & saving proxies on exit

This commit is contained in:
Almaz
2025-07-16 07:23:10 +00:00
committed by GitHub
parent 46ee500b57
commit 0f477d49d7
8 changed files with 194 additions and 144 deletions
+4
View File
@@ -82,6 +82,10 @@ impl TryFrom<&mut Proxy> for reqwest::Proxy {
}
impl Proxy {
pub const fn is_checked(&self) -> bool {
self.timeout.is_some()
}
pub async fn check(&mut self, config: &Config) -> color_eyre::Result<()> {
let client = reqwest::Client::builder()
.user_agent(USER_AGENT)