From 030f895c5c0c1c58558650dc2670f6bcecd48157 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 20 Jul 2024 03:46:46 +0200 Subject: [PATCH] Fixed collision ip generation. --- src/fr/devinsy/logar/app/anonymizer/AnonMap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/logar/app/anonymizer/AnonMap.java b/src/fr/devinsy/logar/app/anonymizer/AnonMap.java index 59611a1..2d0f339 100644 --- a/src/fr/devinsy/logar/app/anonymizer/AnonMap.java +++ b/src/fr/devinsy/logar/app/anonymizer/AnonMap.java @@ -95,10 +95,10 @@ public final class AnonMap } // Check it does not already exist. - if ((this.map.get(result) == null) && (this.unmap.get(result) == null)) + if ((this.unmap.get(result) == null) && (this.map.get(result) == null)) { this.map.put(ip, result); - this.unmap.put(ip, result); + this.unmap.put(result, ip); ended = true; } }