Skip to content

Commit

Permalink
127.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Nov 19, 2024
1 parent cee105f commit dc750b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stardust.Extensions/TracerMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public static void SaveServiceAddress(HttpContext ctx)
if (!ss.Contains(baseAddress))
{
// 过滤掉本机地址
ss = ss.Where(e => !e.EqualIgnoreCase("127.0.0.1", "localhost", "[::1]")).ToList();
ss = ss.Where(e => !e.EqualIgnoreCase("127.0.0.1", "localhost", "[::1]") && !e.StartsWith("127.0.")).ToList();

ss.Insert(0, baseAddress);
set.ServiceAddress = ss.Take(5).Join(",");
Expand Down

0 comments on commit dc750b3

Please sign in to comment.