aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-04-24 12:56:48 -0300
committerSebastian <sebasjm@gmail.com>2023-04-24 12:56:48 -0300
commit4889ae9c9b0d8ae31cc04478c18f2191bf668e26 (patch)
tree2b439d2d3bb86dfc6c3f258114592573a06d9630 /packages/taler-wallet-cli
parent205d7364ed74d90068ae2a1cc402e77ac2f0bbad (diff)
add allowHttp to the cli
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index a31aec2eb..0f378f360 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -190,6 +190,9 @@ export const walletCli = clk
.flag("noThrottle", ["--no-throttle"], {
help: "Don't do any request throttling.",
})
+ .flag("allowHttp", ["--allow-http"], {
+ help: "Allow unsafe http connections.",
+ })
.flag("version", ["-v", "--version"], {
onPresentHandler: printVersion,
})
@@ -240,6 +243,7 @@ async function createLocalWallet(
const dbPath = walletCliArgs.wallet.walletDbFile ?? defaultWalletDbPath;
const myHttpLib = createPlatformHttpLib({
enableThrottling: walletCliArgs.wallet.noThrottle ? false : true,
+ allowHttp: walletCliArgs.wallet.allowHttp ? true : false,
});
const wallet = await createNativeWalletHost({
persistentStoragePath: dbPath !== ":memory:" ? dbPath : undefined,
@@ -1269,6 +1273,7 @@ advancedCli
.action(async (args) => {
const myHttpLib = createPlatformHttpLib({
enableThrottling: false,
+ allowHttp: true,
});
const res = await createNativeWalletHost2({
// No persistent DB storage.