aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-25 20:10:46 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-25 20:10:46 -0700
commite77a94189ecbf13f041346e7d7b6d3ecf5876a6b (patch)
tree1e4f13f88dc735d0cafeb9de0d3cddb63ae44d66 /src/lib.rs
parentbdaf45ff85076cec93b68cd45c018bc02e2fa67e (diff)
downloades-public-proxy-e77a94189ecbf13f041346e7d7b6d3ecf5876a6b.tar.gz
es-public-proxy-e77a94189ecbf13f041346e7d7b6d3ecf5876a6b.zip
rename 'allow_all...' to 'unsafe_all...'
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c8967e3..f50fbdc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -10,7 +10,7 @@ use parse::UrlQueryParams;
pub struct ProxyConfig {
pub bind_addr: Option<String>, // 127.0.0.1:9292
pub upstream_addr: Option<String>, // 127.0.0.1:9200
- pub allow_all_indices: Option<bool>,
+ pub unsafe_all_indices: Option<bool>,
pub index: Vec<IndexConfig>,
}
@@ -21,7 +21,7 @@ pub struct IndexConfig {
impl ProxyConfig {
pub fn allow_index(&self, name: &str) -> bool {
- if self.allow_all_indices == Some(true) {
+ if self.unsafe_all_indices == Some(true) {
return true;
}
for index in &self.index {