Skip to content

Commit 769603c

Browse files
author
Thomas Luijken
committed
Fixed env var name
1 parent b111fc5 commit 769603c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oxybox/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async fn main() {
2828
std::env::var("CONFIG_FILE").unwrap_or_else(|_| "config.yml".to_string());
2929
let config_str =
3030
std::fs::read_to_string(config_file_location).expect("Failed to read config.yaml");
31-
let dns_hosts = std::env::var("DNS_HOST").unwrap_or_else(|_| "1.1.1.1, 8.8.8.8".to_string());
31+
let dns_hosts = std::env::var("DNS_HOSTS").unwrap_or_else(|_| "1.1.1.1, 8.8.8.8".to_string());
3232

3333
let dns_host_vec: Vec<&str> = dns_hosts.split(',').map(str::trim).collect();
3434

0 commit comments

Comments
 (0)