Move smtp relay address to the configuration
[stakingWatchdogWatchdog.git] / src / config.rs
index dd9b167..9b85549 100644 (file)
@@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize};
 #[derive(Debug, Clone, Deserialize, Serialize)]
 pub struct Config {
     pub staking_address: 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 {
             staking_address: "192.168.2.102:8739".to_string(),
+            smtp_relay_address: "mail.something.com".to_string(),
             smtp_login: "login".to_string(),
             smtp_password: "password".to_string(),
         }