Skip to content

Commit ee22e8b

Browse files
committed
New property
1 parent a5701c2 commit ee22e8b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Model/Settings.cs

+17-2
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,24 @@ public bool CountryBlacklistPreciseBool
551551
public string ConcurrentRemoteIPBan { get; set; } = string.Empty;
552552

553553
/// <summary>
554-
/// All other properties go here. Can document in this comment.
554+
/// Threshold for banning an ip address range /24 (count, days)
555555
/// </summary>
556-
[DisplayFormat(ConvertEmptyStringToNull = false)]
556+
[NotMapped]
557+
[IgnoreDataMember]
558+
[XmlIgnore]
559+
[System.Text.Json.Serialization.JsonIgnore]
560+
[Newtonsoft.Json.JsonIgnore]
561+
[LocalizedDisplayName(nameof(IPBanResources.BanRangeThreshold))]
562+
public string BanRangeThreshold
563+
{
564+
get { return PropHelper.GetProp(PropertiesJson, nameof(BanRangeThreshold)); }
565+
set { PropertiesJson = PropHelper.SetProp(PropertiesJson, nameof(BanRangeThreshold), value); }
566+
}
567+
568+
/// <summary>
569+
/// All other properties go here. Can document in this comment.
570+
/// </summary>
571+
[DisplayFormat(ConvertEmptyStringToNull = false)]
557572
[Required(AllowEmptyStrings = true)]
558573
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
559574
[DataMember(Order = 37)]

0 commit comments

Comments
 (0)