Permalink
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
- 11 commits
- 8 files changed
- 0 comments
- 1 contributor
Commits on Mar 13, 2019
…d off of how tor maps IP addresses to country codes, and relies on the provided ipv4 and ipv6 files.
Commits on Mar 15, 2019
Paths to geoip files can now be passed in as arguments. These values will default to /usr/share/tor/geoip(6), which is where the Debian tor-geoip package installs database files
The geoip lookup function now returns the empty string for IP addresses that are not present in the table. New tests for invalid IP address lookups were added and a bug fix for checking an invalid returned index
Added a test to make sure that things don't crash if we're unable to load the provided (or default) geoip file
Now when the geoip databases are updated, the broker operator can send a SIGHUP signal to the broker process to reload the databases without having to restart it.
Every hour, the broker will write per-country usage metrics to a log
Commits on Mar 20, 2019
Added a scrubber that takes all logging output to the standard logger and passes through a series of regular expressions to replace IP addresses with safe strings (e.g., X.X.X.X:443). Ensure server logs to stdout are also scrubbed
Commits on Mar 21, 2019
IPv6 regexes didn't need to be that precise, added more tests for edge-cases.
Added the log scrubber to the rest of the snowflake pieces that are written in go.
There are no files selected for viewing