NewLife/Stardust

127.0.
智能大石头 authored at 2024-11-20 00:19:29
dc750b3
Tree
1 Parent(s) cee105f
Summary: 1 changed files with 1 additions and 1 deletions.
Modified +1 -1
Modified +1 -1
diff --git a/Stardust.Extensions/TracerMiddleware.cs b/Stardust.Extensions/TracerMiddleware.cs
index 9db2f23..cd4313d 100644
--- a/Stardust.Extensions/TracerMiddleware.cs
+++ b/Stardust.Extensions/TracerMiddleware.cs
@@ -229,7 +229,7 @@ public class TracerMiddleware
         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(",");