1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-07-09 00:00:54 +00:00
This commit is contained in:
Michael Meidlinger 2024-03-10 12:51:12 -07:00 committed by GitHub
commit 9d7a892355
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -512,6 +512,9 @@ def list_target_files(config):
# connect to the region & bucket
try:
if config['target_user'] == "" and config['target_pass'] == "":
s3 = boto3.client('s3', endpoint_url=f'https://{target.hostname}')
else:
s3 = boto3.client('s3', \
endpoint_url=f'https://{target.hostname}', \
aws_access_key_id=config['target_user'], \