diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index 9412967..038b09c 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -86,7 +86,7 @@ def cf_api(endpoint, method, config, headers={}, data=False): api_token = config['authentication']['api_token'] if api_token != '' and api_token != 'api_token_here': headers = { - "Authorization": "Bearer " + config['authentication']['api_token'], + "Authorization": "Bearer " + api_token, **headers } else: