|
@@ -549,7 +549,7 @@ func (s *webForwardingService) EditWebForwarding(ctx context.Context, req *v1.We
|
|
}
|
|
}
|
|
|
|
|
|
//白名单IP
|
|
//白名单IP
|
|
- addedAllowIps, removedAllowIps := s.WashDifferentIp(ipData.AllowIpList, req.WebForwardingData.AllowIpList)
|
|
|
|
|
|
+ addedAllowIps, removedAllowIps := s.WashDifferentIp(req.WebForwardingData.AllowIpList, ipData.AllowIpList)
|
|
for _, v := range require.GatewayIps {
|
|
for _, v := range require.GatewayIps {
|
|
if len(addedAllowIps) > 0 {
|
|
if len(addedAllowIps) > 0 {
|
|
go s.wafformatter.PublishIpWhitelistTask(addedAllowIps, "add",v,"white")
|
|
go s.wafformatter.PublishIpWhitelistTask(addedAllowIps, "add",v,"white")
|
|
@@ -560,7 +560,7 @@ func (s *webForwardingService) EditWebForwarding(ctx context.Context, req *v1.We
|
|
}
|
|
}
|
|
|
|
|
|
// 黑名单IP
|
|
// 黑名单IP
|
|
- addedDenyIps, removedDenyIps := s.WashDifferentIp(ipData.DenyIpList, req.WebForwardingData.DenyIpList)
|
|
|
|
|
|
+ addedDenyIps, removedDenyIps := s.WashDifferentIp(req.WebForwardingData.DenyIpList, ipData.DenyIpList)
|
|
for _, v := range require.GatewayIps {
|
|
for _, v := range require.GatewayIps {
|
|
if len(addedDenyIps) > 0 {
|
|
if len(addedDenyIps) > 0 {
|
|
go s.wafformatter.PublishIpWhitelistTask(addedDenyIps, "add",v,"black")
|
|
go s.wafformatter.PublishIpWhitelistTask(addedDenyIps, "add",v,"black")
|