Skip to content

Commit 0684167

Browse files
committed
Allow both IPv4 IP and hostname for ACS api-url
Signed-off-by: Hans Rakers <h.rakers@global.leaseweb.com>
1 parent 1f826c7 commit 0684167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/toxiproxy/toxiProxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func TearDownToxiProxyACS(ctx context.Context, clusterProxy framework.ClusterPro
235235
}
236236

237237
func parseUrl(url string) (string, string, int, string) {
238-
serverRegex := regexp.MustCompilePOSIX("(https?)://([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+):([0-9]+)?(.*)")
238+
serverRegex := regexp.MustCompilePOSIX("(https?)://([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+|[a-zA-Z0-9. _-]+):([0-9]+)?(.*)")
239239

240240
urlComponents := serverRegex.FindStringSubmatch(url)
241241
Expect(len(urlComponents)).To(BeNumerically(">=", 4))

0 commit comments

Comments
 (0)