mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-22 00:40:06 +08:00
feat(sub): get the package_encoding from sub
This commit is contained in:
parent
1a7d078bc8
commit
9fed8520aa
@ -493,7 +493,7 @@ fun StandardV2RayBean.toUriVMessVLESSTrojan(isTrojan: Boolean): String {
|
|||||||
|
|
||||||
when (packetEncoding) {
|
when (packetEncoding) {
|
||||||
1 -> {
|
1 -> {
|
||||||
builder.addQueryParameter("packetEncoding", "packet")
|
builder.addQueryParameter("packetEncoding", "packetaddr")
|
||||||
}
|
}
|
||||||
|
|
||||||
2 -> {
|
2 -> {
|
||||||
|
|||||||
@ -306,12 +306,12 @@ object RawUpdater : GroupUpdater() {
|
|||||||
|
|
||||||
"flow" -> if (isVLESS) bean.encryption = opt.value as String
|
"flow" -> if (isVLESS) bean.encryption = opt.value as String
|
||||||
|
|
||||||
"xudp" -> if (isVLESS) {
|
"packet-addr" -> if (opt.value.toString() == "true") {
|
||||||
if (opt.value.toString() == "false") {
|
bean.packetEncoding = 1
|
||||||
bean.packetEncoding = 0
|
|
||||||
} else {
|
|
||||||
bean.packetEncoding = 2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"xudp" -> if (opt.value.toString() == "true") {
|
||||||
|
bean.packetEncoding = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
"network" -> {
|
"network" -> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user