File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
app/src/main/kotlin/com/neko/v2ray Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ object AppConfig {
153
153
const val WIREGUARD = " wireguard://"
154
154
const val TUIC = " tuic://"
155
155
const val HYSTERIA2 = " hysteria2://"
156
+ const val HY2 = " hy2://"
156
157
157
158
/* * Give a good name to this, IDK*/
158
159
const val VPN = " VPN"
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import com.google.gson.JsonSerializationContext
11
11
import com.google.gson.JsonSerializer
12
12
import com.google.gson.reflect.TypeToken
13
13
import com.neko.v2ray.AppConfig
14
+ import com.neko.v2ray.AppConfig.HY2
14
15
import com.neko.v2ray.R
15
16
import com.neko.v2ray.dto.*
16
17
import com.neko.v2ray.util.MmkvManager.settingsStorage
@@ -51,7 +52,7 @@ object AngConfigManager {
51
52
VlessFmt .parse(str)
52
53
} else if (str.startsWith(EConfigType .WIREGUARD .protocolScheme)) {
53
54
WireguardFmt .parse(str)
54
- } else if (str.startsWith(EConfigType .HYSTERIA2 .protocolScheme)) {
55
+ } else if (str.startsWith(EConfigType .HYSTERIA2 .protocolScheme) || str.startsWith( HY2 ) ) {
55
56
Hysteria2Fmt .parse(str)
56
57
} else {
57
58
null
You can’t perform that action at this time.
0 commit comments