Logo
Explore Help
Sign In
mtfyun/ntfy
Watch 1
Star 0 Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2026-11-10 14:44:04 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
main
ntfy/ban
T
History
binwiederhier 9ccddc7b10 Cap ban weights and the threshold, so counting in thousandths cannot overflow
A weight like 1e16 overflowed to a negative token count, which the limiter always allows, so the code never banned. Weights above 1,000,000 and thresholds above 1,000,000,000 are now rejected at startup.
2026-11-02 01:13:18 +00:00
..
service_test.go
Allow fractional ban weights, weigh auth failures 2 and UnifiedPush 507s 0.05 by default
2026-11-02 01:05:56 +00:00
service.go
Cap ban weights and the threshold, so counting in thousandths cannot overflow
2026-11-02 01:13:18 +00:00
weights_test.go
Cap ban weights and the threshold, so counting in thousandths cannot overflow
2026-11-02 01:13:18 +00:00
weights.go
Cap ban weights and the threshold, so counting in thousandths cannot overflow
2026-11-02 01:13:18 +00:00
Powered by Gitea Page: 9ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API