From 11633ff1f7b03988d6036b742369a70fc7d551db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 2 Dec 2022 20:16:40 +0100 Subject: [PATCH] fix: cliutil: Fix URL-based API endpoint parsing --- cli/util/apiinfo.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cli/util/apiinfo.go b/cli/util/apiinfo.go index 68befdb55..30eff9f28 100644 --- a/cli/util/apiinfo.go +++ b/cli/util/apiinfo.go @@ -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