mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-24 05:55:04 +00:00
Don't proxy our own URLs.
This commit is contained in:
parent
7dc42f5b3b
commit
e4e58d2222
1 changed files with 1 additions and 1 deletions
2
html.c
2
html.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue