浏览代码

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

draoi 2 年之前
父节点
当前提交
df8c1a8e86
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);