]>
Commit | Line | Data |
---|---|---|
480e3014 MT |
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 | } |