Skip to content

Commit 57f8221

Browse files
author
neil
committed
fix --request-v4/6
#6582
1 parent b7a575b commit 57f8221

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

acme.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7086,8 +7086,6 @@ Parameters:
70867086
--alpn Use standalone alpn mode.
70877087
--stateless Use stateless mode.
70887088
See: $_STATELESS_WIKI
7089-
--request-v4 Force client requests to use ipv4.
7090-
--request-v6 Force client requests to use ipv6.
70917089
70927090
--apache Use Apache mode.
70937091
--dns [dns_hook] Use dns manual mode or dns api. Defaults to manual mode when argument is omitted.
@@ -7149,6 +7147,8 @@ Parameters:
71497147
--auto-upgrade [0|1] Valid for '--upgrade' command, indicating whether to upgrade automatically in future. Defaults to 1 if argument is omitted.
71507148
--listen-v4 Force standalone/tls server to listen at ipv4.
71517149
--listen-v6 Force standalone/tls server to listen at ipv6.
7150+
--request-v4 Force client requests to use ipv4 to connect to the CA server.
7151+
--request-v6 Force client requests to use ipv6 to connect to the CA server.
71527152
--openssl-bin <file> Specifies a custom openssl bin location.
71537153
--use-wget Force to use wget, if you have both curl and wget installed.
71547154
--yes-I-know-dns-manual-mode-enough-go-ahead-please Force use of dns manual mode.
@@ -7270,15 +7270,19 @@ _processAccountConf() {
72707270
if [ "$_request_v6" ]; then
72717271
_saveaccountconf "ACME_USE_IPV6_REQUESTS" "$_request_v6"
72727272
_clearaccountconf "ACME_USE_IPV4_REQUESTS"
7273-
elif [ "$ACME_USE_IPV6_REQUESTS" ]; then
7274-
_saveaccountconf "ACME_USE_IPV6_REQUESTS" "$ACME_USE_IPV6_REQUESTS"
7275-
_clearaccountconf "ACME_USE_IPV4_REQUESTS"
7273+
ACME_USE_IPV4_REQUESTS=
72767274
elif [ "$_request_v4" ]; then
72777275
_saveaccountconf "ACME_USE_IPV4_REQUESTS" "$_request_v4"
72787276
_clearaccountconf "ACME_USE_IPV6_REQUESTS"
7277+
ACME_USE_IPV6_REQUESTS=
7278+
elif [ "$ACME_USE_IPV6_REQUESTS" ]; then
7279+
_saveaccountconf "ACME_USE_IPV6_REQUESTS" "$ACME_USE_IPV6_REQUESTS"
7280+
_clearaccountconf "ACME_USE_IPV4_REQUESTS"
7281+
ACME_USE_IPV4_REQUESTS=
72797282
elif [ "$ACME_USE_IPV4_REQUESTS" ]; then
72807283
_saveaccountconf "ACME_USE_IPV4_REQUESTS" "$ACME_USE_IPV4_REQUESTS"
72817284
_clearaccountconf "ACME_USE_IPV6_REQUESTS"
7285+
ACME_USE_IPV6_REQUESTS=
72827286
fi
72837287

72847288
}

0 commit comments

Comments
 (0)