diff --git a/NineChronicles.Headless.AccessControlCenter/AccessControlService/MutableRedisAccessControlService.cs b/NineChronicles.Headless.AccessControlCenter/AccessControlService/MutableRedisAccessControlService.cs index c6fbf961d..eec152cd3 100644 --- a/NineChronicles.Headless.AccessControlCenter/AccessControlService/MutableRedisAccessControlService.cs +++ b/NineChronicles.Headless.AccessControlCenter/AccessControlService/MutableRedisAccessControlService.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using StackExchange.Redis; using Libplanet.Crypto; using NineChronicles.Headless.Services; @@ -27,7 +26,7 @@ public List
ListBlockedAddresses(int offset, int limit) { var server = _db.Multiplexer.GetServer(_db.Multiplexer.GetEndPoints().First()); var keys = server - .Keys(database: _db.Database, pattern: "*") + .Keys() .Select(k => new Address(k.ToString())) .ToList(); diff --git a/NineChronicles.Headless.AccessControlCenter/Configuration.cs b/NineChronicles.Headless.AccessControlCenter/Configuration.cs index 6c35c9097..22ca923df 100644 --- a/NineChronicles.Headless.AccessControlCenter/Configuration.cs +++ b/NineChronicles.Headless.AccessControlCenter/Configuration.cs @@ -2,6 +2,8 @@ namespace NineChronicles.Headless.AccessControlCenter { public class Configuration { + public int Port { get; set; } + public string AccessControlServiceType { get; set; } = null!; public string AccessControlServiceConnectionString { get; set; } = null!; diff --git a/NineChronicles.Headless.AccessControlCenter/Controllers/AccessControlServiceController.cs b/NineChronicles.Headless.AccessControlCenter/Controllers/AccessControlServiceController.cs index 84a5a5c2e..685dca35e 100644 --- a/NineChronicles.Headless.AccessControlCenter/Controllers/AccessControlServiceController.cs +++ b/NineChronicles.Headless.AccessControlCenter/Controllers/AccessControlServiceController.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using NineChronicles.Headless.AccessControlCenter.AccessControlService; +using System.Linq; using Libplanet.Crypto; namespace NineChronicles.Headless.AccessControlCenter.Controllers @@ -36,9 +37,12 @@ public ActionResult AllowAccess(string address) } [HttpGet("entries")] - public ActionResult