roster-server 2.1.24 → 2.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -126,16 +126,15 @@ module.exports.create = function create(config = {}) {
|
|
|
126
126
|
|
|
127
127
|
async function setChallenge(opts) {
|
|
128
128
|
const ch = opts?.challenge || {};
|
|
129
|
-
|
|
130
|
-
log.info("[ACME dns-01 '" + (ch.altname || opts?.altname || 'unknown') + "' CHALLENGE]");
|
|
131
|
-
log.info("You're about to receive the following DNS query:");
|
|
132
|
-
log.info('');
|
|
129
|
+
const altname = ch.altname || opts?.altname || 'unknown';
|
|
133
130
|
const dnsHost = String(ch.dnsHost || '');
|
|
134
131
|
const dnsAuth = ch.dnsAuthorization || opts?.dnsAuthorization || null;
|
|
132
|
+
const token = ch.dnsAuthorization || '<dns-authorization-token>';
|
|
133
|
+
const host = ch.dnsHost || '_acme-challenge.<domain>';
|
|
134
|
+
|
|
135
135
|
if (dnsHost && dnsAuth) {
|
|
136
136
|
presentedByHost.set(dnsHost, dnsAuth);
|
|
137
137
|
}
|
|
138
|
-
const altname = String(ch.altname || opts?.altname || '');
|
|
139
138
|
if (altname && dnsAuth) {
|
|
140
139
|
presentedByAltname.set(altname, { dnsHost, dnsAuthorization: dnsAuth });
|
|
141
140
|
}
|
|
@@ -146,14 +145,8 @@ module.exports.create = function create(config = {}) {
|
|
|
146
145
|
const effectiveTimeoutMs = dnsPollTimeoutMs === null ? effectiveDelay : dnsPollTimeoutMs;
|
|
147
146
|
const expectedToken = resolveExpectedToken(opts, ch);
|
|
148
147
|
|
|
149
|
-
log.info(
|
|
150
|
-
|
|
151
|
-
(ch.dnsHost || '_acme-challenge.<domain>') +
|
|
152
|
-
'\t' +
|
|
153
|
-
(ch.dnsAuthorization || '<dns-authorization-token>') +
|
|
154
|
-
'\tTTL 60'
|
|
155
|
-
);
|
|
156
|
-
log.info('');
|
|
148
|
+
log.info('DNS-01 ' + altname);
|
|
149
|
+
log.info('TXT ' + host + ' ' + token + ' (TTL 60)');
|
|
157
150
|
if (verifyDnsBeforeContinue && dnsHost && expectedToken) {
|
|
158
151
|
log.info(
|
|
159
152
|
'DNS verification enabled. Continuing automatically when TXT appears at ' +
|