aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/client.go b/client.go
index 5ac527e..de0168f 100644
--- a/client.go
+++ b/client.go
@@ -583,6 +583,12 @@ func MediaProxy(url string) string {
if re.MatchString(url) {
return url
}
+
+ re = regexp.MustCompile("(.+)?\\.onion(.+)?")
+
+ if re.MatchString(url) {
+ return url
+ }
MediaHashs[HashMedia(url)] = url
return "/api/media?hash=" + HashMedia(url)