diff options
author | 2023-02-25 09:36:19 +0100 | |
---|---|---|
committer | 2023-02-25 15:57:59 -0800 | |
commit | 2c2700a31d7349f67016a3786125597f9ee38c56 (patch) | |
tree | 9a9cef0c5d6a17946be70e709cf1d0349d05bc77 /proxy/proxy.go | |
parent | 8f9ccc6540be9d637b812985936f064bada8fcf3 (diff) | |
download | v2-2c2700a31d7349f67016a3786125597f9ee38c56.tar.gz v2-2c2700a31d7349f67016a3786125597f9ee38c56.tar.zst v2-2c2700a31d7349f67016a3786125597f9ee38c56.zip |
Proxy support for several media types
closes #615
closes #635
Diffstat (limited to 'proxy/proxy.go')
-rw-r--r-- | proxy/proxy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy/proxy.go b/proxy/proxy.go index 21e9b2e4..1fe9eceb 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -21,7 +21,7 @@ import ( // ProxifyURL generates a relative URL for a proxified resource. func ProxifyURL(router *mux.Router, link string) string { if link != "" { - proxyImageUrl := config.Opts.ProxyImageUrl() + proxyImageUrl := config.Opts.ProxyUrl() if proxyImageUrl == "" { mac := hmac.New(sha256.New, config.Opts.ProxyPrivateKey()) @@ -44,7 +44,7 @@ func ProxifyURL(router *mux.Router, link string) string { // AbsoluteProxifyURL generates an absolute URL for a proxified resource. func AbsoluteProxifyURL(router *mux.Router, host, link string) string { if link != "" { - proxyImageUrl := config.Opts.ProxyImageUrl() + proxyImageUrl := config.Opts.ProxyUrl() if proxyImageUrl == "" { mac := hmac.New(sha256.New, config.Opts.ProxyPrivateKey()) |