Move smtp relay address to the configuration
[stakingWatchdog.git] / src / config.rs
index 187aaca..fbda142 100644 (file)
@@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize};
 #[derive(Debug, Clone, Deserialize, Serialize)]
 pub struct Config {
     pub pub_keys: Vec<String>,
+    pub smtp_relay_address: String,
     pub smtp_login: String,
     pub smtp_password: String,
 }
@@ -18,6 +19,7 @@ impl Config {
     pub fn default() -> Self {
         Config {
             pub_keys: vec![],
+            smtp_relay_address: "mail.something.com".to_string(),
             smtp_login: "login".to_string(),
             smtp_password: "password".to_string(),
         }