Skip to content

Conversation

@OktayJazideh
Copy link

Summary

This PR adds a custom routing rules feature that works exactly like v2rayN, allowing users to define custom routing rules for domains, IPs, ports, and protocols.

Features Added

  • ✅ Custom routing rules management UI
  • ✅ Support for domain-based rules (e.g., *.google.com, geosite:ir)
  • ✅ Support for IP-based rules (e.g., geoip:ir)
  • ✅ Support for port-based rules (e.g., 80, 443)
  • ✅ Support for protocol-based rules (e.g., http, https)
  • ✅ Network type selection (TCP, UDP, TCP/UDP)
  • ✅ Outbound selection (Proxy, Direct, Block)
  • ✅ Persian and English translations
  • ✅ Integration with SingBox configuration

How to Use

  1. Go to Config Options
  2. Click on "Custom Routing Rules"
  3. Add new rules using the + button
  4. Configure domain/IP/port/protocol rules
  5. Select outbound type (Proxy/Direct/Block)
  6. Save the rules

Testing

  • UI components work correctly
  • Rules are saved to preferences
  • Rules are applied to SingBox config
  • JSON serialization/deserialization works

@morkovkaTelegram
Copy link

morkovkaTelegram commented Oct 9, 2025

Please make release build in your fork 🙏
I tried for 2 hours to build the release myself, but each time I had different errors when building.

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.

2 participants