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 726f60f8..61ffee65 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 0e4c5ab8..f8da2dcf 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? {