in client/Apache.ShenYu.AspNetCore/Services/ShenyuStartupService.cs [152:164]
private ICollection<string> GetIpAddresses(ICollection<string> addresses)
{
var ipAddresses = new HashSet<string>();
var ip = IpUtils.GetLocalIPv4(NetworkInterfaceType.Ethernet);
foreach (var address in addresses)
{
var uriBuilder = new UriBuilder(address);
uriBuilder.Host = ip;
var ipAddr = uriBuilder.Uri.ToString();
ipAddresses.Add(ipAddr);
}
return ipAddresses;
}