Don't proxy our own URLs.

This commit is contained in:
default 2024-11-07 20:23:07 +01:00
parent 7dc42f5b3b
commit e4e58d2222

2
html.c
View file

@ -47,7 +47,7 @@ xs_str *make_url(const char *href, const char *proxy)
{
xs_str *url = NULL;
if (proxy) {
if (proxy && !xs_startswith(href, srv_baseurl)) {
xs *p = xs_str_cat(xs_dup(proxy), "/proxy/");
url = xs_replace(href, "https:/" "/", p);
}