mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-23 15:14:43 -05:00
🐛 #43
This commit is contained in:
parent
42fd251eb5
commit
6e09c44d17
@ -28,7 +28,14 @@ func ParseShadowsocksR(proxy string) (model.Proxy, error) {
|
||||
protocol := parts[2]
|
||||
method := parts[3]
|
||||
obfs := parts[4]
|
||||
password := parts[5]
|
||||
password, err := DecodeBase64(parts[5])
|
||||
if err != nil {
|
||||
return model.Proxy{}, &ParseError{
|
||||
Type: ErrInvalidStruct,
|
||||
Raw: proxy,
|
||||
Message: err.Error(),
|
||||
}
|
||||
}
|
||||
port, err := ParsePort(parts[1])
|
||||
if err != nil {
|
||||
return model.Proxy{}, &ParseError{
|
||||
|
Loading…
Reference in New Issue
Block a user