Skip to content

Commit

Permalink
Merge pull request #9780 from filecoin-project/fix/parse-api-urls
Browse files Browse the repository at this point in the history
fix: cliutil: Fix URL-based API endpoint parsing
  • Loading branch information
magik6k authored Dec 2, 2022
2 parents d886b46 + 11633ff commit 1791db5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cli/util/apiinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ func ParseApiInfoMulti(s string) []APIInfo {
allAddrs := strings.SplitN(s, ",", -1)

for _, addr := range allAddrs {
if infoWithToken.Match([]byte(addr)) {
sp := strings.SplitN(addr, ":", 2)
apiInfos = append(apiInfos, APIInfo{
Addr: sp[1],
Token: []byte(sp[0]),
})
}
apiInfos = append(apiInfos, ParseApiInfo(addr))
}

return apiInfos
Expand Down

0 comments on commit 1791db5

Please sign in to comment.