Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Nov 7, 2024
1 parent 2218251 commit 547bbf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down
2 changes: 1 addition & 1 deletion V2rayNG/app/src/main/kotlin/com/v2ray/ang/fmt/SocksFmt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down

0 comments on commit 547bbf8

Please sign in to comment.