Skip to content

Commit

Permalink
fix filter loc
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrmcdaniel committed Jun 14, 2024
1 parent 267149f commit 136cc06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions privaxy/src/server/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,7 @@ fn get_config_directory() -> PathBuf {
// Assume default directory
Err(_) => PathBuf::from(CONFIGURATION_DIRECTORY_NAME),
};
return get_base_directory()
.expect("Base path not found.")
return get_base_directory().unwrap_or(get_home_directory().unwrap())
.join(config_dir);
}

Expand All @@ -606,8 +605,7 @@ fn get_filter_directory() -> PathBuf {
// Assume home directory
Err(_) => PathBuf::from(FILTERS_DIRECTORY_NAME),
};
return get_base_directory()
.expect("Base path not found.")
return get_config_directory()
.join(filter_dir);
}

Expand Down

0 comments on commit 136cc06

Please sign in to comment.