mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 22:50:05 +08:00
update fmt
This commit is contained in:
parent
373509d932
commit
21f4247aba
@ -285,7 +285,12 @@ object RawUpdater : GroupUpdater() {
|
|||||||
|
|
||||||
"vmess", "vless" -> {
|
"vmess", "vless" -> {
|
||||||
val isVLESS = proxy["type"].toString() == "vless"
|
val isVLESS = proxy["type"].toString() == "vless"
|
||||||
val bean = VMessBean().apply { if (isVLESS) alterId = -1 }
|
val bean = VMessBean().apply {
|
||||||
|
if (isVLESS) {
|
||||||
|
alterId = -1 // make it VLESS
|
||||||
|
packetEncoding = 2 // clash meta default XUDP
|
||||||
|
}
|
||||||
|
}
|
||||||
for (opt in proxy) {
|
for (opt in proxy) {
|
||||||
when (opt.key.replace("_", "-")) {
|
when (opt.key.replace("_", "-")) {
|
||||||
"name" -> bean.name = opt.value?.toString()
|
"name" -> bean.name = opt.value?.toString()
|
||||||
@ -300,6 +305,14 @@ object RawUpdater : GroupUpdater() {
|
|||||||
|
|
||||||
"flow" -> if (isVLESS) bean.encryption = opt.value as String
|
"flow" -> if (isVLESS) bean.encryption = opt.value as String
|
||||||
|
|
||||||
|
"xudp" -> if (isVLESS) {
|
||||||
|
if (opt.value.toString() == "false") {
|
||||||
|
bean.packetEncoding = 0
|
||||||
|
} else {
|
||||||
|
bean.packetEncoding = 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
"network" -> {
|
"network" -> {
|
||||||
bean.type = opt.value as String
|
bean.type = opt.value as String
|
||||||
// Clash "network" fix
|
// Clash "network" fix
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user