Update dns_fornex.sh

This commit is contained in:
neil 2022-04-12 10:11:05 +08:00 committed by GitHub
parent a300df0020
commit 2b891f7f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -107,6 +107,7 @@ _get_root() {
}
_Fornex_API() {
FORNEX_API_KEY="${FORNEX_API_KEY:-$(_readaccountconf_mutable FORNEX_API_KEY)}"
if [ -z "$FORNEX_API_KEY" ]; then
FORNEX_API_KEY=""
@ -116,7 +117,7 @@ _Fornex_API() {
return 1
fi
_saveaccountconf FORNEX_API_KEY "$FORNEX_API_KEY"
_saveaccountconf_mutable FORNEX_API_KEY "$FORNEX_API_KEY"
}
#method method action data