compatible with legacy rules

This commit is contained in:
Kr328 committed 2019-12-10 00:32:32 +08:00
1 parent d7df27b91d
commit 64803bef1e
2 files changed
+4 -2

No files matched your search

@@ -46,6 +46,9 @@ data class ClashRule(val matcher: Matcher, val pattern: String, val target: Stri
"DST-PORT" -> DST_PORT
"SRC-PORT" -> SRC_PORT
"MATCH" -> MATCH
// Deprecated
"SOURCE-IP-CIDR" -> SRC_IP_CIDR
"FINAL" -> MATCH
else -> throw YamlException("Invalid matcher $s", 0, 0)
}
}
+1 -2
View File
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main_root"
android:layout_width="match_parent"
@@ -26,7 +25,7 @@
android:text="@string/launch_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"/>
android:layout_marginStart="25dp"/>
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>