authorization: add status methods
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
8bb020edc6
commit
d11357e5f2
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue