gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 03/04: add allowHttp to the cli


From: gnunet
Subject: [taler-wallet-core] 03/04: add allowHttp to the cli
Date: Mon, 24 Apr 2023 18:13:30 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

commit 4889ae9c9b0d8ae31cc04478c18f2191bf668e26
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Apr 24 12:56:48 2023 -0300

    add allowHttp to the cli
---
 packages/taler-wallet-cli/src/index.ts | 5 +++++
 1 file changed, 5 insertions(+)

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.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]