mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
add backward compatibility to exhaust path
This commit is contained in:
parent
95183ab1c3
commit
954a55adbe
@ -278,7 +278,12 @@ func main() {
|
|||||||
confImgPath := path.Clean(config.ImgPath)
|
confImgPath := path.Clean(config.ImgPath)
|
||||||
QUALITY := config.QUALITY
|
QUALITY := config.QUALITY
|
||||||
AllowedTypes := config.AllowedTypes
|
AllowedTypes := config.AllowedTypes
|
||||||
ExhaustPath := config.ExhaustPath
|
var ExhaustPath string
|
||||||
|
if len(config.ExhaustPath) == 0 {
|
||||||
|
ExhaustPath = "./exhaust"
|
||||||
|
} else {
|
||||||
|
ExhaustPath = config.ExhaustPath
|
||||||
|
}
|
||||||
|
|
||||||
if prefetch {
|
if prefetch {
|
||||||
prefetchImages(confImgPath, ExhaustPath, QUALITY)
|
prefetchImages(confImgPath, ExhaustPath, QUALITY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user