]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
improve the compatibility
authorLJea <sino@lioat.cn>
Sat, 2 Sep 2023 16:02:16 +0000 (01:02 +0900)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 16:02:16 +0000 (01:02 +0900)
Fixed an issue where some embedded devices could not obtain nanoseconds resulting in abnormal parameter coding

dnsapi/dns_ali.sh

index c21056726f04f4d9f628de27b220c5cd37524955..c69839dcbd27f5484f86dd61db3f56952ea209ab 100755 (executable)
@@ -117,7 +117,7 @@ _ali_urlencode() {
 _ali_nonce() {
   #_head_n 1 </dev/urandom | _digest "sha256" hex | cut -c 1-31
   #Not so good...
-  date +"%s%N"
+  date +"%s%N" | sed 's/%N//g'
 }
 
 _check_exist_query() {