diff options
Diffstat (limited to '')
-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()) |