Jelajahi Sumber

lilith: fix logic error that was causing responsive nodes to be sent to greylist

draoi 2 tahun lalu
induk
melakukan
df8c1a8e86
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      bin/lilith/src/main.rs

+ 1 - 1
bin/lilith/src/main.rs

@@ -197,7 +197,7 @@ impl Lilith {
                         continue
                     }
 
-                    if p2p.session_refine().handshake_node(url.clone(), p2p.clone()).await {
+                    if !p2p.session_refine().handshake_node(url.clone(), p2p.clone()).await {
                         debug!(target: "net::refinery:::whitelist_refinery",
                        "Host {} is not responsive. Downgrading from whitelist", url);