From 3bc04d8250b65f9b70018a0967eb5ef95117b7e2 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 8 Oct 2025 01:33:11 +0300 Subject: [PATCH] Fix ipv6 parsing in make-etcd --- mon/scripts/make-etcd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mon/scripts/make-etcd b/mon/scripts/make-etcd index 5b47b31b..cf23c798 100755 --- a/mon/scripts/make-etcd +++ b/mon/scripts/make-etcd @@ -52,7 +52,7 @@ async function run() process.exit(1); } const etcds = (config.etcd_address instanceof Array ? config.etcd_address : (''+config.etcd_address).split(/,/)) - .map(s => (''+s).replace(/^https?:\/\/\[?|\]?(:\d+)?(\/.*)?$/g, '').toLowerCase()); + .map(s => (''+s).replace(/^https?:\/\/|(:\d+)?(\/.*)?$/g, '').replace(/^\[(.*)\]$/, '$1').toLowerCase()); const num = select_local_etcd(etcds); if (num < 0) {