Files
SillyTavern/src
Wolfsblvt bc06f3e3e0 Refactor: make whitelist validation a bit more robust (#4757)
* refactor: extract IP whitelist validation into helper function

- Added isIPInWhitelist helper with error handling for individual whitelist entry checks
- Replaced inline whitelist matching logic with reusable function calls
- Added JSDoc type annotations and error logging for failed IP matching attempts

* refactor: simplify whitelist validation with upfront filtering

- Moved IP validation to startup time instead of per-request checking
- Extracted validateWhitelist function to filter invalid entries once at initialization
- Simplified isIPInWhitelist by removing redundant error handling after validation

* fix: correct IP whitelist matching to use parsed CIDR notation
2025-11-12 21:13:58 +02:00
..
2025-09-04 19:11:07 +03:00
2025-11-11 13:16:04 +00:00
2024-08-26 12:07:36 +03:00
2024-10-10 22:37:22 +03:00
2025-11-05 00:53:23 +02:00
2025-07-17 13:49:15 +00:00
2025-01-15 10:02:32 -05:00
2025-03-06 14:55:50 +00:00
2025-07-21 00:24:49 +03:00