Commit 33392c013ac0ea67c53a6f0f57b3a4e6edcfb03e
Update dat-dns for TXT record support
cel committed on 8/29/2018, 7:59:40 PMParent: 0dc90679c2621a5b112229ca9441babff47814c9
Files changed
dat.dpi | changed |
package.json | changed |
dat.dpi | |||
---|---|---|---|
@@ -334,9 +334,12 @@ | |||
334 | 334 … | var self = this | |
335 | 335 … | self.urlp = parseDatUrl(self.url, true) | |
336 | 336 … | if (!self.urlp.host) return self.serveError('Archive not found') | |
337 | 337 … | self.sendStatus('resolving name') | |
338 | - datDns.resolveName(self.urlp.host, {ignoreCachedMiss: true}, function (err, key) { | ||
338 … | + datDns.resolveName(self.urlp.host, { | ||
339 … | + ignoreCachedMiss: true, | ||
340 … | + noDnsOverHttps: true | ||
341 … | + }, function (err, key) { | ||
339 | 342 … | if (err) return self.serveError(err) | |
340 | 343 … | if (!key) return cb(new TypeError('resolve failed')) | |
341 | 344 … | self.sendStatus('getting archive') | |
342 | 345 … | withTimeout(getArchive, 10000)(key, function (err, archive) { |
Built with git-ssb-web