paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

commit 2553a6844ac542b2ad9d16d93db8f8db4a4a6543
parent ee2362bc5961a0342dc70676b492b31c28ded216
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  3 May 2026 19:56:48 +0200

fix #11356

Diffstat:
Msrc/backend/paivana-httpd.c | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/backend/paivana-httpd.c b/src/backend/paivana-httpd.c @@ -32,6 +32,7 @@ #include <gnunet/gnunet_curl_lib.h> #include <taler/taler_mhd_lib.h> #include <taler/taler_templating_lib.h> +#include <taler/merchant/common.h> #include "paivana-httpd.h" #include "paivana-httpd_cookie.h" #include "paivana-httpd_daemon.h" @@ -211,6 +212,26 @@ run (void *cls, return; } } + { + char *merchant_unix_path; + + if (GNUNET_OK == + GNUNET_CONFIGURATION_get_value_string ( + c, + "paivana", + "MERCHANT_BACKEND_UNIX_PATH", + &merchant_unix_path)) + { + if (! TALER_MERCHANT_global_set_unixpath (merchant_unix_path)) + { + GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_WARNING, + "paivana", + "MERCHANT_BACKEND_UNIX_PATH", + "invalid path; ignoring the setting"); + } + GNUNET_free (merchant_unix_path); + } + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string ( c,