From 547bbf8e953e58bd82b477e2b907bcf30262324d Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:37:17 +0800 Subject: [PATCH] Bug fix --- V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/ShadowsocksFmt.kt | 2 +- V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/SocksFmt.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/ShadowsocksFmt.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/ShadowsocksFmt.kt index 726f60f8e..61ffee65f 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/ShadowsocksFmt.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/ShadowsocksFmt.kt @@ -45,7 +45,7 @@ object ShadowsocksFmt : FmtBase() { fun toUri(config: ProfileItem): String { val pw = "${config.method}:${config.password}" - return toUri(config, pw, null) + return toUri(config, Utils.encode(pw), null) } fun toOutbound(profileItem: ProfileItem): OutboundBean? { diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/SocksFmt.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/SocksFmt.kt index 0e4c5ab8b..f8da2dcf9 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/SocksFmt.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/SocksFmt.kt @@ -38,7 +38,7 @@ object SocksFmt : FmtBase() { else ":" - return toUri(config, pw, null) + return toUri(config, Utils.encode(pw), null) } fun toOutbound(profileItem: ProfileItem): OutboundBean? {