diff --git a/src/Tgstation.Server.Host/Configuration/SwarmConfiguration.cs b/src/Tgstation.Server.Host/Configuration/SwarmConfiguration.cs index 417203bd1b..12c9cf25a0 100644 --- a/src/Tgstation.Server.Host/Configuration/SwarmConfiguration.cs +++ b/src/Tgstation.Server.Host/Configuration/SwarmConfiguration.cs @@ -1,9 +1,8 @@ using System; using Tgstation.Server.Api.Models.Internal; -using YamlDotNet.Serialization; -#nullable disable +using YamlDotNet.Serialization; namespace Tgstation.Server.Host.Configuration { @@ -19,7 +18,7 @@ namespace Tgstation.Server.Host.Configuration /// [YamlMember(SerializeAs = typeof(string))] - public override Uri Address + public override Uri? Address { get => base.Address; set => base.Address = value; @@ -27,7 +26,7 @@ namespace Tgstation.Server.Host.Configuration /// [YamlMember(SerializeAs = typeof(string))] - public override Uri PublicAddress + public override Uri? PublicAddress { get => base.PublicAddress; set => base.PublicAddress = value; @@ -37,12 +36,12 @@ namespace Tgstation.Server.Host.Configuration /// The of the swarm controller. If , the current server is considered the controller. /// [YamlMember(SerializeAs = typeof(string))] - public Uri ControllerAddress { get; set; } + public Uri? ControllerAddress { get; set; } /// /// The private key used for swarm communication. /// - public string PrivateKey { get; set; } + public string? PrivateKey { get; set; } /// /// The number of nodes in addition to the controller required to be connected a server swarm before performing an update.