aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-11-12 09:01:30 +0100
committerdefault <nobody@localhost>2024-11-12 09:01:30 +0100
commit19b9998f8c42918430f7c41ebd40b8339b9d7cd7 (patch)
tree8e2a88f826cc8bf61878f50292d68d1b21597915 /html.c
parent50fa2ae0e620b813e2eab3b6a89efdf171d7856e (diff)
The proxy token seed is created on startup and never stored.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index ce4c0a8..d344745 100644
--- a/html.c
+++ b/html.c
@@ -3208,7 +3208,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
}
else {
/* proxy usage authorized by proxy_token */
- xs *tks = xs_fmt("%s:%s", xs_dict_get(srv_config, "proxy_token_seed"), snac.actor);
+ xs *tks = xs_fmt("%s:%s", srv_proxy_token_seed, snac.actor);
xs *tk = xs_md5_hex(tks, strlen(tks));
xs *p = xs_fmt("y/%s/", tk);