fix(core): Fixes IPMatch and some cleanup (#443)
- [X] Fixes a bug where IPMatch was returning false on some IP ranges - [X] Cleans up shrink table load.
This commit is contained in:
parent
cb22e662b4
commit
24ebdd0f90
7 changed files with 22 additions and 30 deletions
|
|
@ -53,6 +53,7 @@ namespace Server.Tests
|
|||
[InlineData("::1024:*-:1234", "::1024:8A13:1234", false, false)]
|
||||
[InlineData("::1024:?1:1234", "::1024:8A13:1234", false, false)]
|
||||
[InlineData("::1024:1_2:1234", "::1024:8A13:1234", false, false)]
|
||||
[InlineData("172.16-31.*", "172.16.17.2", true, true)]
|
||||
public void TestIPMatch(string val, string addr, bool shouldMatch, bool shouldBeValid)
|
||||
{
|
||||
var address = IPAddress.Parse(addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue