Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support West.cn Domain #4856

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update dns_west.sh
Signed-off-by: mrbaiwei <[email protected]>
mrbaiwei committed Nov 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit feffbba6de593693dff8d5c87a7c021b21eadcf1
8 changes: 4 additions & 4 deletions dnsapi/dns_west.sh
Original file line number Diff line number Diff line change
@@ -20,8 +20,8 @@ dns_west_add() {
if [ -z "$WEST_Username" ] || [ -z "$WEST_Key" ]; then
WEST_Username=""
WEST_Key=""
_err "You don't specify dnspod api key and key id yet."
_err "Please create you key and try again."
_err "You don't specify west api key and username yet."
_err "Please set you key and try again."
return 1
fi

@@ -41,7 +41,7 @@ dns_west_rm() {
WEST_Key="${WEST_Key:-$(_readaccountconf_mutable WEST_Key)}"

if ! _rest POST "domain/dns/" "act=dnsrec.list&username=$WEST_Username&apikey=$WEST_Key&domain=$fulldomain&hostname=$fulldomain&record_type=TXT"; then
_err "Record.Lis error."
_err "dnsrec.list error."
return 1
fi

@@ -58,7 +58,7 @@ dns_west_rm() {
fi

if ! _rest POST "domain/dns/" "act=dnsrec.remove&username=$WEST_Username&apikey=$WEST_Key&domain=$fulldomain&hostname=$fulldomain&record_id=$record_id"; then
_err "Record.Remove error."
_err "dnsrec.remove error."
return 1
fi