cozuya / secret-hitler

A web adaptation of the social deduction board game Secret Hitler. https://secrethitler.io
Other
837 stars 202 forks source link

ipv6 action fix #1871

Closed iounpaladin closed 3 years ago

iounpaladin commented 3 years ago

this pr includes the previous pr in it because i was under the impression that the previous would be merged before this one was finished

Changes

Updates all IP actions on IPv6 IPs to automatically target the /64 instead of the /128. More generally, this implements CIDR ipbans (so any IP range can be IP banned by modifying the document after) as well as logging to check for potential false positives. These are stored in signups and will be seen under the Failed tab along with the size of the IP ban (editors approved this).

Tested locally.