File: fix-assertion-after-geoip-database-change.patch

package info (click to toggle)
lua-geoip 0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 765; makefile: 10; sh: 10
file content (24 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 0959d082109953d5f2555f9941f7098d8cbb8115 Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Wed, 23 Nov 2022 10:08:59 +0100
Subject: [PATCH] fix assertion after geoip database change

The address 2a03:2880:f127:83:face:b00c:0:25de moved from IE to US in
the geoip database.
---
 test/test.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test.lua b/test/test.lua
index 691d43c..0135cb5 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -194,7 +194,7 @@ do
   assert(res.code == "FR")
 
   res = geodb_country6:query_by_addr6("2a03:2880:f127:83:face:b00c:0:25de")
-  assert(res.code == "IE")
+  assert(res.code == "US")
   geodb_country6:close()
 end