From b6bfe1435d0c55732fd7ddafe33eba76ac8421ca Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 3 Nov 2025 16:18:38 +0300 Subject: [PATCH] Followup fix for make-etcd ipv6 support --- 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 650a9efb..890ce6d0 100755 --- a/mon/scripts/make-etcd +++ b/mon/scripts/make-etcd @@ -61,7 +61,7 @@ async function run() } const etcd_url = 'http://' + (etcds[num].indexOf(':') >= 0 ? '['+etcds[num]+']' : etcds[num]); const etcd_name = 'etcd'+etcds[num].replace(/[^0-9a-z_]/ig, '_'); - const etcd_cluster = etcds.map(e => `etcd${e.replace(/[^0-9a-z_]/ig, '_')}=${etcd_url}:2380`).join(','); + const etcd_cluster = etcds.map(e => `etcd${e.replace(/[^0-9a-z_]/ig, '_')}=http://${e.indexOf(':') >= 0 ? '['+e+']' : e}:2380`).join(','); if (in_docker) { let etcd_conf = fs.readFileSync("/etc/vitastor/etcd.conf", { encoding: 'utf-8' });