[fix]避免旧版应用注册服务时上报过多服务地址

This commit is contained in:
大石头 2025-06-26 21:38:22 +08:00
parent 11c6d3623b
commit cfcf662b3e
1 changed files with 2 additions and 2 deletions

View File

@ -272,9 +272,9 @@ public class RegistryService
if (service.Address.IsNullOrEmpty())
{
if (!model.ExternalAddress.IsNullOrEmpty())
svc.Address = model.ExternalAddress;
svc.Address = model.ExternalAddress?.Split(',').Take(5).Join(",");
else
svc.Address = urls.Take(10).Join(",");
svc.Address = urls.Take(5).Join(",");
}
else
{