[fix] Use context variables in Vpn.auto_client for OpenVPN backend#1227
[fix] Use context variables in Vpn.auto_client for OpenVPN backend#1227nemesifier merged 1 commit intomasterfrom
Conversation
Bug: The `Vpn.auto_client` method was incorrectly using the Vpn.host field when generating the client configuration for the OpenVPN backend. This resulted in the `remote` directive being hardcoded in the `Template.config`, instead of being rendered from the provided context variables. Fix: The `Vpn.auto_client` method has been updated to use the correct context-based values.
|
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2026-01-15T15:05:49.557ZApplied to files:
📚 Learning: 2026-01-15T15:07:17.354ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (3)
WalkthroughThe change modifies the Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
|
@nemesifier IMO, this needs to be backported as well. |
Checklist
Description of Changes
Bug:
The
Vpn.auto_clientmethod was incorrectly using the Vpn.host field when generating the client configuration for the OpenVPN backend.This resulted in the
remotedirective being hardcoded in theTemplate.config, instead of being rendered from the provided context variables.Fix:
The
Vpn.auto_clientmethod has been updated to use the correct context-based values.