mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
60222acf7e
- Transition `of_config_versions` primary key from `id` to `version` string. - Add database migration files for PostgreSQL and SQLite. - Introduce GORM hooks to preserve JSON backward compatibility. - Remove all localized private structures (`configVersionRecord`, `configVersionRow`) across `agent` and `flared` modules. - Remove local database Row structures (`tlsCertificateRow`, `tunnelNodeRow`, `pagesProjectRow`) in `proxy_route` module. - Reuse `model` query methods directly to fetch active config, tunnel nodes, and pages projects. - Cache IP detection results in memory with a 10-minute TTL to prevent frequent HTTP egress queries to realip.cc. - Integrate multiple fallback IP lookup providers (ifconfig.me, ip.sb, icanhazip.com) to guarantee IP detection reliability.