Fix crash when rule type error
This commit is contained in:
parent
8226cea7c7
commit
e31c83a3f0
|
@ -63,7 +63,9 @@ extension ConfigFileManager {
|
|||
rules in
|
||||
let hasFinal = rules.reversed().contains() { $0.type.lowercased() == "match" }
|
||||
if !hasFinal {
|
||||
showNoFinalRuleAlert()
|
||||
DispatchQueue.main.async {
|
||||
showNoFinalRuleAlert()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module github.com/yichengchen/clashX/ClashX
|
||||
|
||||
require (
|
||||
github.com/Dreamacro/clash v0.16.1-0.20191030074355-1948ea11eff6
|
||||
github.com/Dreamacro/clash v0.16.1-0.20191104150719-e48ccdd4c89b
|
||||
github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
|
||||
)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
github.com/Dreamacro/clash v0.16.1-0.20191030074355-1948ea11eff6 h1:/JEfoolttYIVD/KVO9jNqJAwkMv5iXwxs/F6jasb/gk=
|
||||
github.com/Dreamacro/clash v0.16.1-0.20191030074355-1948ea11eff6/go.mod h1:4ZBtABBmIGqISniBtu9fpYORrE5mKqIP8SMCTrNNVNY=
|
||||
github.com/Dreamacro/clash v0.16.1-0.20191104150719-e48ccdd4c89b h1:ONTJW3Da+afDRxjgN/GCR5q8jL1qLql7Q+4eUcd5nlw=
|
||||
github.com/Dreamacro/clash v0.16.1-0.20191104150719-e48ccdd4c89b/go.mod h1:4ZBtABBmIGqISniBtu9fpYORrE5mKqIP8SMCTrNNVNY=
|
||||
github.com/Dreamacro/go-shadowsocks2 v0.1.5-0.20191012162057-46254afc8b68 h1:UBDLpj1IGVkUcUBuZWE6DmZApPTZcnmcV6AfyDN/yhg=
|
||||
github.com/Dreamacro/go-shadowsocks2 v0.1.5-0.20191012162057-46254afc8b68/go.mod h1:Y8obOtHDOqxMGHjPglfCiXZBKExOA9VL6I6sJagOwYM=
|
||||
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY=
|
||||
|
|
Loading…
Reference in New Issue