Skip to content

Commit

Permalink
fix: ss2022 converter password decode error
Browse files Browse the repository at this point in the history
  • Loading branch information
stitchrs committed Jan 10, 2023
1 parent 3a8e7c8 commit 0c354c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions common/convert/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,7 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
)

if password, found = urlSS.User.Password(); !found {
dcBuf, _ := enc.DecodeString(cipher)
if !strings.Contains(string(dcBuf), "2022-blake3") {
dcBuf, _ = encRaw.DecodeString(cipher)
}
dcBuf, _ := encRaw.DecodeString(cipher)
cipher, password, found = strings.Cut(string(dcBuf), ":")
if !found {
continue
Expand Down

0 comments on commit 0c354c7

Please sign in to comment.