mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
fix: parse encryption
This commit is contained in:
parent
e294613361
commit
9601549d83
@ -186,7 +186,8 @@ public abstract class StandardV2RayBean extends AbstractBean {
|
||||
|
||||
public boolean isVLESS() {
|
||||
if (this instanceof VMessBean) {
|
||||
return ((VMessBean) this).alterId == -1;
|
||||
Integer aid = ((VMessBean) this).alterId;
|
||||
return aid != null && aid == -1;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -207,6 +207,13 @@ fun StandardV2RayBean.parseDuckSoft(url: HttpUrl) {
|
||||
}
|
||||
}
|
||||
|
||||
// maybe from matsuri vmess exoprt
|
||||
if (this is VMessBean && !isVLESS) {
|
||||
url.queryParameter("encryption")?.let {
|
||||
encryption = it
|
||||
}
|
||||
}
|
||||
|
||||
url.queryParameter("packetEncoding")?.let {
|
||||
when (it) {
|
||||
"packet" -> packetEncoding = 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user