diff --git a/src/server.rs b/src/server.rs index 12b6897..e46b789 100644 --- a/src/server.rs +++ b/src/server.rs @@ -122,6 +122,10 @@ impl Config { } } + pub fn get_authentication(&self) -> Option> { + self.auth.as_ref().map(|a| a.clone()) + } + /// Set whether or not to execute commands pub fn set_execute_command(&mut self, value: bool) -> &mut Self { self.execute_command = value;