Skip to content

Commit

Permalink
get auth
Browse files Browse the repository at this point in the history
  • Loading branch information
dizda committed Jun 21, 2023
1 parent 8327af0 commit 2f72c59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ impl<A: Authentication> Config<A> {
}
}

pub fn get_authentication(&self) -> Option<Arc<A>> {
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;
Expand Down

0 comments on commit 2f72c59

Please sign in to comment.