Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
9e9f839d
Commit
9e9f839d
authored
Jan 15, 2018
by
neilpang
Browse files
support only one wildcard domain.
fix
https://github.com/Neilpang/acme.sh/issues/1188#issuecomment-357684744
parent
60814ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
9e9f839d
...
@@ -3340,10 +3340,6 @@ issue() {
...
@@ -3340,10 +3340,6 @@ issue() {
_main_domain="$2"
_main_domain="$2"
_alt_domains="$3"
_alt_domains="$3"
if _startswith "$_main_domain" "*."; then
_err "The first domain can not be wildcard, '$_main_domain' is a wildcard domain."
return 1
fi
if _contains "$_main_domain" ","; then
if _contains "$_main_domain" ","; then
_main_domain=$(echo "$2,$3" | cut -d , -f 1)
_main_domain=$(echo "$2,$3" | cut -d , -f 1)
_alt_domains=$(echo "$2,$3" | cut -d , -f 2- | sed "s/,${NO_VALUE}$//")
_alt_domains=$(echo "$2,$3" | cut -d , -f 2- | sed "s/,${NO_VALUE}$//")
...
@@ -5539,13 +5535,13 @@ _process() {
...
@@ -5539,13 +5535,13 @@ _process() {
return 1
return 1
fi
fi
if _startswith "$_dvalue" "*."; then
_debug "Wildcard domain"
export ACME_VERSION=2
fi
if [ -z "$_domain" ]; then
if [ -z "$_domain" ]; then
_domain="$_dvalue"
_domain="$_dvalue"
else
else
if _startswith "$_dvalue" "*."; then
_debug "Wildcard domain"
export ACME_VERSION=2
fi
if [ "$_altdomains" = "$NO_VALUE" ]; then
if [ "$_altdomains" = "$NO_VALUE" ]; then
_altdomains="$_dvalue"
_altdomains="$_dvalue"
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment