mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-19 02:05:18 +08:00
防盗链功能增加“例外URL“和“限制URL”设置
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user