Commit Graph

10 Commits

Author SHA1 Message Date
afjoseph 013634d9f1 Revert "Remove old-style build tags"
This reverts commit 11ae25660a.
2021-11-01 11:26:58 +11:00
Matt Joiner 11ae25660a Remove old-style build tags 2021-10-07 09:12:17 +11:00
Matt Joiner c3c982b621 Fixes for wasm 2021-06-23 17:24:50 +10:00
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