This commit is contained in:
FengbinShi 2024-01-11 17:03:52 +08:00
parent 0268843c29
commit 51acdccf26
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class TokenFile(ReadOnlyTokenFile):
return super().lookup(token)
class TokenFileName(BasePlugin):
# source is a directory
# token is filename
# contents of file is host:port
def __init__(self, src):
super().__init__(src)
if not os.path.isdir(src):