|
@@ -600,7 +600,7 @@ func (s *webForwardingService) EditWebForwarding(ctx context.Context, req *v1.We
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- maps.Copy(ipData.CdnOriginIds, addedIds)
|
|
|
+
|
|
|
for k, v := range ipData.CdnOriginIds {
|
|
|
for _, ip := range delOrigins {
|
|
|
if k == ip.Addr {
|
|
@@ -613,7 +613,7 @@ func (s *webForwardingService) EditWebForwarding(ctx context.Context, req *v1.We
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ maps.Copy(ipData.CdnOriginIds, addedIds)
|
|
|
|
|
|
webModel := s.buildWebForwardingModel(&req.WebForwardingData, req.WebForwardingData.CdnWebId, require)
|
|
|
webModel.Id = req.WebForwardingData.Id
|