porn4fans fix
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user