mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix engine status host not reporting hostname correctly.
The hostname wasn't being cached at server start.
This commit is contained in:
@@ -98,7 +98,7 @@ namespace Robust.Server.ServerStatus
|
||||
|
||||
// Cache this in a field to avoid thread safety shenanigans.
|
||||
// Writes/reads of references are atomic in C# so no further synchronization necessary.
|
||||
_configurationManager.OnValueChanged(CVars.GameHostName, n => _serverNameCache = n);
|
||||
_configurationManager.OnValueChanged(CVars.GameHostName, n => _serverNameCache = n, true);
|
||||
|
||||
if (!_configurationManager.GetCVar(CVars.StatusEnabled))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user