diff --git a/passivessl.sql b/passivessl.sql index 9d25412..7e55d92 100644 --- a/passivessl.sql +++ b/passivessl.sql @@ -308,7 +308,7 @@ plan = plpy.prepare("SELECT * FROM fuzzy_hash WHERE type <> $1", ["text"]) rv = plan.execute(["filter"], maxrows) r = [] for x in rv: - if tlsh.diff(x["value"], hash) > threshold: + if tlsh.diff(x["value"], hash) < threshold: r.append(x) return r $$;