Browse Source

Merge pull request #2175 from loial/dns_gdnsdk_fix

dns_gdnsdk: Fixed stupid regex error, want literal "-", not a range
dnsconf
neil 6 years ago
committed by GitHub
parent
commit
fc30171725
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dnsapi/dns_gdnsdk.sh

2
dnsapi/dns_gdnsdk.sh

@ -137,7 +137,7 @@ _mypost() {
_get_domain() { _get_domain() {
_myget 'action=dns_primarydns' _myget 'action=dns_primarydns'
_domains=$(echo "$_result" | _egrep_o ' domain="[[:alnum:].-_]+' | sed 's/^.*"//')
_domains=$(echo "$_result" | _egrep_o ' domain="[[:alnum:]._-]+' | sed 's/^.*"//')
if [ -z "$_domains" ]; then if [ -z "$_domains" ]; then
_err "Primary domain list not found!" _err "Primary domain list not found!"
return 1 return 1

Loading…
Cancel
Save