diff --git a/pages/settings/wallets/[wallet].js b/pages/settings/wallets/[wallet].js index c5836ed2..139b1a0f 100644 --- a/pages/settings/wallets/[wallet].js +++ b/pages/settings/wallets/[wallet].js @@ -175,7 +175,7 @@ function generateSchema (wallet, { me }) { : validator .url() .test(async (url, context) => { - if (field.validate.onionAllowed && TOR_REGEXP.test(url)) { + if (field.validate.torAllowed && TOR_REGEXP.test(url)) { // allow HTTP and HTTPS over Tor if (!/^https?:\/\//.test(url)) { return context.createError({ message: 'http or https required' }) diff --git a/wallets/lnbits/index.js b/wallets/lnbits/index.js index f4a5e940..6ffadc14 100644 --- a/wallets/lnbits/index.js +++ b/wallets/lnbits/index.js @@ -7,7 +7,7 @@ export const fields = [ type: 'text', validate: { type: 'url', - onionAllowed: true + torAllowed: true } }, {