Fix support for specifying keyservers

This commit is contained in:
Yarmo Mackenbach 2020-12-08 02:29:10 +01:00
parent bcd38922af
commit 41b1d0767b

View file

@ -27,7 +27,7 @@ const mergeOptions = require('merge-options')
const fetchHKP = (identifier, keyserverBaseUrl) => {
return new Promise(async (resolve, reject) => {
keyserverBaseUrl = keyserverBaseUrl
? keyserverBaseUrl
? `https://${keyserverBaseUrl}/`
: 'https://keys.openpgp.org/'
const hkp = new openpgp.HKP(keyserverBaseUrl)