mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-21 16:30: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) {
|
||||
1 -> {
|
||||
builder.addQueryParameter("packetEncoding", "packet")
|
||||
builder.addQueryParameter("packetEncoding", "packetaddr")
|
||||
}
|
||||
|
||||
2 -> {
|
||||
|
||||
@ -306,13 +306,13 @@ object RawUpdater : GroupUpdater() {
|
||||
|
||||
"flow" -> if (isVLESS) bean.encryption = opt.value as String
|
||||
|
||||
"xudp" -> if (isVLESS) {
|
||||
if (opt.value.toString() == "false") {
|
||||
bean.packetEncoding = 0
|
||||
} else {
|
||||
"packet-addr" -> if (opt.value.toString() == "true") {
|
||||
bean.packetEncoding = 1
|
||||
}
|
||||
|
||||
"xudp" -> if (opt.value.toString() == "true") {
|
||||
bean.packetEncoding = 2
|
||||
}
|
||||
}
|
||||
|
||||
"network" -> {
|
||||
bean.type = opt.value as String
|
||||
|
||||
Loading…
Reference in New Issue
Block a user