-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
- Loading branch information
There are no files selected for viewing
3 comments
on commit 243cafd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it cannot work properly with the latest shadowsocks-rust, as it requires strict padding for the input string.
For example, both ul+/ZaHKume+mu7KJ4WCUQ==
and ul+/ZaHKume+mu7KJ4WCUQ
can be decoded correctly with Base64.DEFAULT
mode. However, ss-rust will exit with an error about the padding.
@zonyitoo Maybe you can relax the padding requirement from your side? It should make everyone's life easier. 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zonyitoo Agreed with above. Just imagine your Google return nothing for you because you put an extra space at the end of your query.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.rs/base64/0.21.0/base64/engine/enum.DecodePaddingMode.html#variant.Indifferent
Let me try this padding mode ...
profile.password
这个配置,可能存在iPSK:uPSK
格式的密码。如果要在客户端检测,要先以
:
做分组,然后对分组后的psk
做检测。