防盗链功能增加“例外URL“和“限制URL”设置

This commit is contained in:
GoEdgeLab
2024-04-17 15:45:17 +08:00
parent 5d5f0855bf
commit 81b0a302e8
2 changed files with 53 additions and 1 deletions

View File

@@ -320,6 +320,14 @@ func (this *HTTPWebConfig) Init(ctx context.Context) error {
}
}
// referers
if this.Referers != nil {
err := this.Referers.Init()
if err != nil {
return err
}
}
return nil
}