From b6212e11b66bb8d11e1e000e06cd1831726f0d65 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 17 Jun 2024 18:45:15 +0200 Subject: [PATCH] Remove selftest --- src/main.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index d5adc4f..91ab165 100644 --- a/src/main.ts +++ b/src/main.ts @@ -164,9 +164,6 @@ export class Main { this.ipv6.open("./data/IP2LOCATION-LITE-DB5.IPV6.BIN"); console.log("Loaded IPv6 database") - const result = this.ipv4.getAll("78.23.104.174"); - console.log("Testresult on fixed IP address:", result) - new Server(2347, {}, [{ mustMatch: "ip", @@ -192,6 +189,7 @@ export class Main { const fullResult = db.getAll(ipAddress) const result: Record = {} for (const k of this.allowedKeys) { + result[k] = fullResult[k] } return result