feat(sub): get the package_encoding from sub

This commit is contained in:
HystericalDragon 2023-08-07 20:25:03 +08:00 committed by arm64v8a
parent 1a7d078bc8
commit 9fed8520aa
2 changed files with 6 additions and 6 deletions

View File

@ -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 -> {

View File

@ -306,13 +306,13 @@ 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 {
"xudp" -> if (opt.value.toString() == "true") {
bean.packetEncoding = 2 bean.packetEncoding = 2
} }
}
"network" -> { "network" -> {
bean.type = opt.value as String bean.type = opt.value as String