porn4fans fix

This commit is contained in:
Simon
2026-03-13 12:13:04 +00:00
parent 2e1223e519
commit 6a62582c09
10 changed files with 345 additions and 33 deletions

View File

@@ -296,7 +296,11 @@ pub fn strip_url_scheme(url: &str) -> String {
pub fn build_proxy_url(options: &ServerOptions, proxy: &str, target: &str) -> String {
let target = target.trim_start_matches('/');
let base = options.public_url_base.as_deref().unwrap_or("").trim_end_matches('/');
let base = options
.public_url_base
.as_deref()
.unwrap_or("")
.trim_end_matches('/');
if base.is_empty() {
format!("/proxy/{proxy}/{target}")