Browse Source

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.
draoi 2 years ago
parent
commit
ab52d14372
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/net/hosts.rs

+ 1 - 1
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),