K0p1-Git / cloudflare-ddns-updater

Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP! Written in pure BASH~
MIT License
1.39k stars 388 forks source link

global - token #91

Closed molbar closed 4 months ago

molbar commented 4 months ago

Hi,

Im not into this sript thing, so I couldnt say why the code did not work for me: I had to comment out this If-Else section as it picked "Bearer" even though I set auth_method to "global"

###########################################
## Check and set the proper auth header
###########################################
if [[ "${auth_method}" == "global" ]]; then
  auth_header="X-Auth-Key:"
else
  auth_header="Authorization: Bearer"
fi
molbar commented 4 months ago

Ok, realized that this script not running properly with Debian system due to the DASH script...