1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 11:14:41 -05:00
This commit is contained in:
Nite07 2024-10-08 10:01:09 +08:00
parent 42fd251eb5
commit 6e09c44d17

View File

@ -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{