From ff08c15820be942aeb1ca7ff44373c380436a209 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Tue, 25 Jul 2023 21:13:22 +0300 Subject: [PATCH] Auth filename recognition --- dragonion_core/proto/file/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dragonion_core/proto/file/auth.py b/dragonion_core/proto/file/auth.py index 00f201e..9098ba6 100644 --- a/dragonion_core/proto/file/auth.py +++ b/dragonion_core/proto/file/auth.py @@ -8,8 +8,11 @@ class AuthFile(sqlitedict.SqliteDict): auth - v3 onion auth string in format, that can be written to .auth_private file """ def __init__(self, service): + """ + :param service: Service name or service.auth filename + """ super().__init__( - filename=f'{service}.auth', + filename=f'{service}.auth' if '.auth' not in service else service, tablename='auth', autocommit=True )