1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-26 03:32:30 +01:00
ntfy/util
Karmanyaah Malhotra c2382d29a1 refactor visitor IPs and allow exempting IP Ranges
Use netip.Addr instead of storing addresses as strings. This requires
conversions at the database level and in tests, but is more memory
efficient otherwise, and facilitates the following.

Parse rate limit exemptions as netip.Prefix. This allows storing IP
ranges in the exemption list. Regular IP addresses (entered explicitly
or resolved from hostnames) are IPV4/32, denoting a range of one
address.
2022-10-05 16:04:42 -05:00
..
embedfs
content_type_writer.go
content_type_writer_test.go
embedfs.go Reformatting, make update 2022-09-27 12:37:02 -04:00
embedfs_test.go
gzip_handler.go Replace interface{} 2022-10-01 16:31:48 -04:00
gzip_handler_test.go
limit.go
limit_test.go
peek.go Docs and Matrix tests 2022-06-16 11:40:56 -04:00
peek_test.go
time.go
time_test.go
util.go refactor visitor IPs and allow exempting IP Ranges 2022-10-05 16:04:42 -05:00
util_test.go Bump Go version, Generics whoooo 2022-10-01 15:50:48 -04:00