mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:40:05 +00:00
0.6 final
This commit is contained in:
1 parent
7c0581eb97
commit
b89e1932bb
160 files changed
+20534
-4664
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
from insclient import INSClient
|
||||
import settings
|
||||
|
||||
def ins_client(identifier: str = 'AzuL-SERV') -> INSClient:
|
||||
host = ('127.0.0.1' if settings.INS_HOST in ('0.0.0.0', '::', '') else settings.INS_HOST)
|
||||
return INSClient(
|
||||
identifier, key_file = os.path.join(settings.INS_KEY_DIR, '{}.client.key'.format(identifier.lower())),
|
||||
enrollment_code = os.environ.get('INS_ENROLLMENT_CODE') or None, host = host, port = settings.INS_PORT, keepalive = False,
|
||||
client_name = 'azul-script', client_version = settings.VERSION, label = 'azul scripts',
|
||||
)
|
||||
Reference in new issue
Block a user