|
@@ -954,6 +954,7 @@ func (s *webForwardingService) WashDifferentIp(newIpList []string, oldIpList []s
|
|
|
return addedDenyIps, removedDenyIps
|
|
|
}
|
|
|
|
|
|
+// 修改日志配置
|
|
|
func (s *webForwardingService) EditLog(ctx context.Context,webId int64) error {
|
|
|
webConfigId, err := s.webForwardingRepository.GetWebConfigId(ctx, webId)
|
|
|
if err != nil {
|
|
@@ -977,6 +978,7 @@ func (s *webForwardingService) EditLog(ctx context.Context,webId int64) error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+// 修改CC配置
|
|
|
func (s *webForwardingService) EditCcConfig(ctx context.Context,webId int64, req v1.CcConfigRequest) error {
|
|
|
webConfigId, err := s.webForwardingRepository.GetWebConfigId(ctx, webId)
|
|
|
if err != nil {
|
|
@@ -1000,6 +1002,9 @@ func (s *webForwardingService) EditCcConfig(ctx context.Context,webId int64, req
|
|
|
Thresholds: configThreshold,
|
|
|
Level: req.Level,
|
|
|
UseDefaultThresholds : true,
|
|
|
+ EnableGET302: true,
|
|
|
+ EnableFingerprint : true,
|
|
|
+ IgnoreCommonFiles : true,
|
|
|
}); err != nil {
|
|
|
return err
|
|
|
}
|