Add endpoints to manage IPC bans (#2715)

* Add endpoints to manage IPC bans

* Remove debug code

* Misc.

* Simplify unban logic

* Add explanatory comment to new string resource
This commit is contained in:
Sebastian Göls
2022-10-10 19:28:07 +02:00
committed by GitHub
parent 406a5f1fd1
commit 321e02c0ff
4 changed files with 105 additions and 1 deletions

View File

@@ -981,6 +981,15 @@ namespace ArchiSteamFarm.Localization {
}
}
/// <summary>
/// Looks up a localized string similar to The IP address {0} is not banned!.
/// </summary>
public static string ErrorIPNotBanned {
get {
return ResourceManager.GetString("ErrorIPNotBanned", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} is empty!.
/// </summary>

View File

@@ -740,4 +740,8 @@ Process uptime: {1}</value>
<value>Please enter your cryptkey: </value>
<comment>Please note that this translation should end with space</comment>
</data>
<data name="ErrorIPNotBanned" xml:space="preserve">
<value>The IP address {0} is not banned!</value>
<comment>{0} will be replaced by an IP address which was requested to be unbanned from using IPC</comment>
</data>
</root>