Skip to content

Commit

Permalink
Update base.go
Browse files Browse the repository at this point in the history
  • Loading branch information
asdlokj1qpi23 committed Aug 28, 2023
1 parent 1639434 commit 058cc83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/proxy/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ func ParseProxyFromClashProxy(p map[string]interface{}) (proxy Proxy, err error)
if !validParams(&proxy.ProtocolParam) {
return nil, errors.New("Password Error")
}
if !validParams(&proxy.ObfsParam) {
return nil, errors.New("Password Error")
}
return &proxy, nil
case "vmess":
var proxy Vmess
Expand Down Expand Up @@ -230,9 +233,7 @@ func validPassword(pass interface{}) (flag bool) {
return false
}
} else {
if isNumber(pass) {
return false
}
return false
}
return true
}
Expand Down

0 comments on commit 058cc83

Please sign in to comment.