From 3a1cbc7d5d8170f1cab7ecb0e0303b0922edd274 Mon Sep 17 00:00:00 2001 From: Rafael Gawenda <3426685+netizen-ais@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:20:45 +0200 Subject: [PATCH] Remove comma from cloudflare's token end Idk if it's happening to anyone else --- ddclient.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index 082cc8c..3f3fc35 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6196,7 +6196,9 @@ sub nic_cloudflare_update { my $headers = "Content-Type: application/json\n"; if ($config{$key}{'login'} eq 'token') { - $headers .= "Authorization: Bearer $config{$key}{'password'}\n"; + my $token = $config{$key}{'password'}; + $token =~ s/,$//; + $headers .= "Authorization: Bearer $token\n"; } else { $headers .= "X-Auth-Email: $config{$key}{'login'}\n"; $headers .= "X-Auth-Key: $config{$key}{'password'}\n";