mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-22 17:52:30 +01:00
c2382d29a1
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. |
||
---|---|---|
.. | ||
access.go | ||
access_test.go | ||
app.go | ||
app_test.go | ||
config_loader.go | ||
config_loader_test.go | ||
publish.go | ||
publish_test.go | ||
publish_unix.go | ||
publish_windows.go | ||
serve.go | ||
serve_test.go | ||
subscribe.go | ||
subscribe_darwin.go | ||
subscribe_unix.go | ||
subscribe_windows.go | ||
user.go | ||
user_test.go |