Skip to content

Commit 547bbf8

Browse files
committed
Bug fix
1 parent 2218251 commit 547bbf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/ShadowsocksFmt.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ object ShadowsocksFmt : FmtBase() {
4545
fun toUri(config: ProfileItem): String {
4646
val pw = "${config.method}:${config.password}"
4747

48-
return toUri(config, pw, null)
48+
return toUri(config, Utils.encode(pw), null)
4949
}
5050

5151
fun toOutbound(profileItem: ProfileItem): OutboundBean? {

V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/SocksFmt.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ object SocksFmt : FmtBase() {
3838
else
3939
":"
4040

41-
return toUri(config, pw, null)
41+
return toUri(config, Utils.encode(pw), null)
4242
}
4343

4444
fun toOutbound(profileItem: ProfileItem): OutboundBean? {

0 commit comments

Comments
 (0)