Skip to content

Commit

Permalink
dir
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Dec 19, 2024
1 parent 7ec8229 commit 530a6e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.env.local
banned_domains.txt
banned_users.txt
/faucet_config
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async fn main() -> anyhow::Result<()> {

fn banned_domains() -> Vec<String> {
let mut domains = vec![];
let file = std::fs::read_to_string("banned_domains.txt");
let file = std::fs::read_to_string("faucet_config/banned_domains.txt");
if let Ok(file) = file {
for line in file.lines() {
let line = line.trim();
Expand All @@ -177,7 +177,7 @@ fn banned_domains() -> Vec<String> {

fn get_banned_users() -> Vec<String> {
let mut banned_users = vec![];
let file = std::fs::read_to_string("banned_users.txt");
let file = std::fs::read_to_string("faucet_config/banned_users.txt");
if let Ok(file) = file {
for line in file.lines() {
let line = line.trim();
Expand Down

0 comments on commit 530a6e0

Please sign in to comment.