|
@@ -398,7 +398,11 @@ func (s *webForwardingService) EditWebForwarding(ctx context.Context, req *v1.We
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
- go s.wafformatter.PublishDomainWhitelistTask(webData.Domain, Ip, "del")
|
|
|
+ oldDomain, err := s.wafformatter.ConvertToWildcardDomain(ctx, webData.Domain)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ go s.wafformatter.PublishDomainWhitelistTask(oldDomain, Ip, "del")
|
|
|
go s.wafformatter.PublishDomainWhitelistTask(doMain, Ip, "add")
|
|
|
}
|
|
|
|