Skip to content

Conversation

@XYenon
Copy link
Contributor

@XYenon XYenon commented Nov 12, 2025

Two related issues were fixed:

  1. The filter_null_references filter only checked if routing rules referenced valid outbounds, causing rules that reference endpoints to be incorrectly removed
  2. Endpoints were assigned to options after template rendering and filtering, so the filter couldn't access them

Changes:

  • Modified filter to allow routing rules to reference both outbounds and endpoints as valid targets
  • Moved endpoint assignment to before filtering by passing endpoints to template.Render() and setting them early in the render process
  • This allows custom_rules in extended templates to route traffic to endpoints (e.g., Tailscale) without being filtered out

🤖 Generated with Claude Code

Two related issues were fixed:
1. The filter_null_references filter only checked if routing rules
   referenced valid outbounds, causing rules that reference endpoints
   to be incorrectly removed
2. Endpoints were assigned to options after template rendering and
   filtering, so the filter couldn't access them

Changes:
- Modified filter to allow routing rules to reference both outbounds
  and endpoints as valid targets
- Moved endpoint assignment to before filtering by passing endpoints
  to template.Render() and setting them early in the render process
- This allows custom_rules in extended templates to route traffic to
  endpoints (e.g., Tailscale) without being filtered out

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant