authorization: add status methods

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-03-30 14:35:39 -04:00
parent 8bb020edc6
commit d11357e5f2
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 3 additions and 0 deletions

View File

@ -734,6 +734,9 @@ class Authorization:
"X-CRSF-Token, Authorization, X-Access-Token, "
"X-Api-Key")
def cors_enabled(self) -> bool:
return self.cors_domains is not None
def close(self) -> None:
self.prune_timer.stop()