From ab52d143727d017601ba7841da7dfa5881628435 Mon Sep 17 00:00:00 2001 From: draoi Date: Sun, 7 Jul 2024 12:28:28 +0200 Subject: [PATCH] hosts: enable the transition from Refine to Move We need to be able to move hosts after refining them, whether that's to send them to the greylist or to the whitelist. --- src/net/hosts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/hosts.rs b/src/net/hosts.rs index a287f3f4d..7c9b72d20 100644 --- a/src/net/hosts.rs +++ b/src/net/hosts.rs @@ -226,7 +226,7 @@ impl HostState { let end = HostState::Move.to_string(); match self { HostState::Insert => Err(Error::HostStateBlocked(start, end)), - HostState::Refine => Err(Error::HostStateBlocked(start, end)), + HostState::Refine => Ok(HostState::Move), HostState::Connect => Ok(HostState::Move), HostState::Suspend => Err(Error::HostStateBlocked(start, end)), HostState::Connected(_) => Ok(HostState::Move),