diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |