Skip to content

Commit

Permalink
修复set.ServiceAddress为空时导致的对象为空Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
猿人易 committed May 17, 2024
1 parent 12c4810 commit 9e4fb62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public static void SaveServiceAddress(HttpContext ctx)
var baseAddress = $"{uri.Scheme}://{uri.Authority}";

var set = NewLife.Setting.Current;
if (set.ServiceAddress.IsNullOrWhiteSpace()) return;
var ss = set.ServiceAddress.Split(",").ToList();
if (!ss.Contains(baseAddress))
{
Expand Down

0 comments on commit 9e4fb62

Please sign in to comment.