From 85772721643611609f1be616156acaa475d5e5d8 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