Re-enable junk bans
@@ -238,8 +238,8 @@ namespace MiningCore.Stratum
case JsonReaderException jsonEx:
// ban clients sending junk
logger.Error(() => $"[{LogCat}] [{client.ConnectionId}] Connection json error state: {jsonEx.Message}");
- //logger.Info(() => $"[{LogCat}] [{client.ConnectionId}] Banning client for sending junk");
- //banManager.Ban(client.RemoteEndpoint.Address, TimeSpan.FromMinutes(30));
+ logger.Info(() => $"[{LogCat}] [{client.ConnectionId}] Banning client for sending junk");
+ banManager.Ban(client.RemoteEndpoint.Address, TimeSpan.FromMinutes(30));
break;
default:
