Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Nov 30, 2024
1 parent e91f447 commit 98c642e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions V2rayNG/app/src/main/java/com/v2ray/ang/fmt/FmtBase.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.v2ray.ang.fmt

import com.v2ray.ang.AppConfig
import com.v2ray.ang.dto.NetworkType
import com.v2ray.ang.dto.ProfileItem
import com.v2ray.ang.extension.isNotNullEmpty
Expand Down Expand Up @@ -47,6 +48,9 @@ open class FmtBase {
config.xhttpExtra = queryParam["extra"]

config.security = queryParam["security"]
if (config.security != AppConfig.TLS && config.security != AppConfig.REALITY) {
config.security = null
}
config.insecure = if (queryParam["allowInsecure"].isNullOrEmpty()) {
allowInsecure
} else {
Expand Down

0 comments on commit 98c642e

Please sign in to comment.