diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt index 0b0d53cff..332c2bc87 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/util/AngConfigManager.kt @@ -342,8 +342,11 @@ object AngConfigManager { queryParam["host"], queryParam["path"], queryParam["seed"], queryParam["quicSecurity"], queryParam["key"], queryParam["mode"], queryParam["serviceName"]) fingerprint = queryParam["fp"] ?: "" + val pbk = queryParam["pbk"] ?: "" + val sid = queryParam["sid"] ?: "" + val spx = Utils.urlDecode(queryParam["spx"] ?: "") streamSetting.populateTlsSettings(queryParam["security"] ?: "", allowInsecure, - queryParam["sni"] ?: sni, fingerprint, queryParam["alpn"], null, null, null) + queryParam["sni"] ?: sni, fingerprint, queryParam["alpn"], pbk, sid, spx) } if (config == null){ return R.string.toast_incorrect_protocol @@ -544,6 +547,15 @@ object AngConfigManager { if (!TextUtils.isEmpty(tlsSetting.fingerprint)) { dicQuery["fp"] = tlsSetting.fingerprint!! } + if (!TextUtils.isEmpty(tlsSetting.publicKey)) { + dicQuery["pbk"] = tlsSetting.publicKey!! + } + if (!TextUtils.isEmpty(tlsSetting.shortId)) { + dicQuery["sid"] = tlsSetting.shortId!! + } + if (!TextUtils.isEmpty(tlsSetting.spiderX)) { + dicQuery["spx"] = Utils.urlEncode(tlsSetting.spiderX!!) + } } dicQuery["type"] = streamSetting.network.ifEmpty { V2rayConfig.DEFAULT_NETWORK }