feat(wireguard): add global WireGuard disable option#444
Conversation
…date subscription logic - Introduced `wireguard_enabled` boolean in the General settings model to control WireGuard functionality. - Updated subscription operations to check the `wireguard_enabled` flag before processing WireGuard requests. - Enhanced user interface to include a toggle for enabling/disabling WireGuard in the settings dashboard. - Adjusted localization files to support new WireGuard settings descriptions.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Add WIREGUARD_ENABLED config setting - Remove persisted wireguard_enabled general setting - Remove dashboard WireGuard enable toggle and related API state - Gate WireGuard allocation and subscription output from env config
Summary
Performance
Disabling WireGuard avoids the expensive peer IP allocation path, which scans existing users, reads JSON proxy settings, parses peer IP networks, checks overlaps/reserved ranges, and allocates from the global pool.