X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=src%2Fconfig.rs;h=fb6b7cf7b82e7a28d38f4798e1c90f054bc092cd;hb=e45d8f67336160ae61a9dc24f899752f5199a01b;hp=e3b1309555b508c1032bf40e05be402c3218e879;hpb=14192169c496bbd090f85a7e308817e6e6027aed;p=gandi_dns_update.git diff --git a/src/config.rs b/src/config.rs index e3b1309..fb6b7cf 100644 --- a/src/config.rs +++ b/src/config.rs @@ -8,14 +8,13 @@ use crate::error::Result; pub struct Config { pub delay_between_check: time::Duration, pub api_key: String, - pub fqdn: String, - pub domains: Vec, + pub domains: Vec<(String, String)>, // Hostname, domain. pub ttl: i32 } impl Config { pub fn default() -> Self { - Config { delay_between_check: time::Duration::from_secs(120), api_key: String::from(""), fqdn: String::from(""), domains: Vec::new(), ttl: 300 } + Config { delay_between_check: time::Duration::from_secs(120), api_key: String::from(""), domains: Vec::new(), ttl: 300 } } pub fn read(file_path: &str) -> Result {