Skip to content

Commit

Permalink
星尘代理和配置中心发布的PluginServer,都不应该影响星尘平台
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jul 3, 2024
1 parent 253895d commit 98aa4b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Stardust/Configs/StarHttpConfigProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal class StarHttpConfigProvider : HttpConfigProvider
!svr.EqualIgnoreCase(set.PluginServer) &&
(asm == null || !asm.Name.EqualIgnoreCase("StarWeb", "StarServer")))
{
XTrace.WriteLine("插件服务器PluginServer变更为 {0}", svr);
XTrace.WriteLine("据配置中心发布,插件服务器PluginServer变更为 {0}", svr);
set.PluginServer = svr;
set.Save();
}
Expand Down
4 changes: 2 additions & 2 deletions Stardust/StarFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ private void Init()
else
XTrace.WriteLine("星尘探测:StarAgent Not Found, Cost={0}ms", sw.ElapsedMilliseconds);

if (inf != null && !inf.PluginServer.IsNullOrEmpty())
if (inf != null && !inf.PluginServer.IsNullOrEmpty() && !AppId.EqualIgnoreCase("StarWeb", "StarServer"))
{
var core = NewLife.Setting.Current;
if (!inf.PluginServer.EqualIgnoreCase(core.PluginServer))
{
XTrace.WriteLine("插件服务器PluginServer变更为 {0}", inf.PluginServer);
XTrace.WriteLine("据星尘代理公布,插件服务器PluginServer变更为 {0}", inf.PluginServer);
core.PluginServer = inf.PluginServer;
core.Save();
}
Expand Down

0 comments on commit 98aa4b9

Please sign in to comment.