Skip to content
Snippets Groups Projects
Commit b3a777f4 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix a bug where blacklists did not work as expected

parent 95e246d3
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
name = "sms-gateway"
description = "A http frontend for SMS Server Tools 3"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
version = "0.3.0"
version = "0.3.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
......
......@@ -109,7 +109,7 @@ impl Sms {
if CONFIG.filters.blacklist.len() > 0 {
// Check if the number matches any of the numbers on the blacklist
let in_blacklist = CONFIG.filters.whitelist.iter()
let in_blacklist = CONFIG.filters.blacklist.iter()
.any(|re|{
re.is_match(&self.number)
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment