]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/xtables-addons-3.2-fix-database-generation.patch
ipsec-interfaces: Apply static routes (again) after creating IPsec interfaces
[ipfire-2.x.git] / src / patches / xtables-addons-3.2-fix-database-generation.patch
1 diff --git a/geoip/xt_geoip_build b/geoip/xt_geoip_build
2 index 3b15875..7bc42f3 100755
3 --- a/geoip/xt_geoip_build
4 +++ b/geoip/xt_geoip_build
5 @@ -259,7 +259,12 @@ sub writeCountry
6 my ($start, $end) = split('-', $range);
7 $start = inet_pton($family, $start);
8 $end = inet_pton($family, $end);
9 - print $fh $start, $end;
10 +
11 + if ($family == AF_INET) {
12 + print $fh substr($start, 0, 4), substr($end, 0, 4);
13 + } else {
14 + print $fh $start, $end;
15 + }
16 }
17 close $fh;
18 }