Filtering insecure servers in public subscriptions
// readme
🛡️ VPN Config Security Filter
🚀 What’s new in v5.1
🛡️ Security improvements
- ✅ Thread safety —
threading.Lockon health-tracking, correct operation with 5 parallel workers - ✅ Port validation — ports 1–65535 are checked on all protocols
- ✅ Exact domain match —
.cfno longer matchescfire.ru, only the TLD*.cf - ✅ Fail-closed SSR — broken encoding = reject, not a silent pass
- ✅ VMess format-2
alterId— replay-attack protection for the new format - ✅
pbkvalidation — length exactly 43 characters (X25519 public key) - ✅ SS 2022 fail-closed — invalid base64 key = reject
- ✅ Post-quantum cryptography — validation of ML-KEM-768 + X25519 hybrids
⚡ Performance and UX
- ✅ LRU caching —
@lru_cachefor frequently used checks - ✅ Parallel loading —
ThreadPoolExecutorfor sources - ✅ URL Health tracking — automatic skipping of dead sources (3+ consecutive failures)
- ✅ Base64 round-trip — decode → filter → encode
- ✅ QR codes with HTML index — convenient on mobile
- ✅ Multi-protocol per endpoint —
host:port:prototriple, does not cut valid combinations - ✅ **
RAW_BASE…