aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 5b3cfd3..7bbb928 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -77,4 +77,10 @@ impl Config {
)
})
}
+
+ pub fn server_name(&self) -> String {
+ self.base_url
+ .clone()
+ .unwrap_or_else(|| "default".to_string())
+ }
}