mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
fix: use user-set proxy
This commit is contained in:
+2
-1
@@ -31,7 +31,8 @@ func SPximgProxy(c *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
func IPximgProxy(c *fiber.Ctx) error {
|
||||
URL := fmt.Sprintf("https://%s/%s", config.GlobalServerConfig.ProxyServer, c.Params("*"))
|
||||
proxy_authority := config.GetImageProxy(c)
|
||||
URL := fmt.Sprintf("https://%s/%s", proxy_authority, c.Params("*"))
|
||||
req, _ := http.NewRequest("GET", URL, nil)
|
||||
|
||||
// Make the request
|
||||
|
||||
Reference in New Issue
Block a user