Matt Joiner
|
8d1995c4d4
|
Support IPv6 blocklists
Existing packed blocklists need to be regenerated.
|
2018-02-11 15:11:26 +11:00 |
Matt Joiner
|
1f81f57b9c
|
There was no error for missing file, and no way to close the mmap returned from iplist.MmapPacked
The function is also renamed due to the changed behaviour.
|
2018-02-08 23:57:35 +11:00 |
Matt Joiner
|
582d749f69
|
iplist: Add TODO to allow unmapping
|
2017-06-11 20:09:40 +10:00 |
Seth Hoenig
|
9f4bf70e17
|
refactor struct identifiers to follow conventional go names
|
2016-04-18 23:11:11 -05:00 |
Matt Joiner
|
792feae8f9
|
iplist: Add helper to mmap in a packed blocklist
|
2016-04-04 16:23:05 +10:00 |
Matt Joiner
|
a4049e179c
|
Avoid allocation in iplist.Ranger.Lookup
It was very expensive for DHT packets.
|
2015-10-19 00:00:26 +11:00 |
Matt Joiner
|
22428da0e3
|
Add packed IP list
This saves a lot of memory by allowing the IP blocklist to be mmap()ed in. In production with the latest level1 blocklist it's 35MB per process.
|
2015-09-23 18:25:22 +10:00 |