From 1b91ee85b1eb4c71c309597428f0868a9927f307 Mon Sep 17 00:00:00 2001 From: turikhay Date: Thu, 8 Feb 2024 00:32:32 +0300 Subject: [PATCH] Rule to bypass TLD country domains --- .../io/nekohasekai/sagernet/database/ProfileManager.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/io/nekohasekai/sagernet/database/ProfileManager.kt b/app/src/main/java/io/nekohasekai/sagernet/database/ProfileManager.kt index 0c2a4a55..972256d4 100644 --- a/app/src/main/java/io/nekohasekai/sagernet/database/ProfileManager.kt +++ b/app/src/main/java/io/nekohasekai/sagernet/database/ProfileManager.kt @@ -234,6 +234,13 @@ object ProfileManager { outbound = -1 ), false ) + createRule( + RuleEntity( + name = app.getString(R.string.route_bypass_domain, displayCountry), + domains = "domain:$country", + outbound = -1 + ), false + ) createRule( RuleEntity( name = app.getString(R.string.route_bypass_ip, displayCountry),