Fix make-etcd for ip:port

rm-left-on-dead
Vitaliy Filippov 2022-09-04 14:11:53 +03:00
parent 2a1da88253
commit 8972878c77
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,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, '').toLowerCase());
const num = select_local_etcd(etcds);
if (num < 0)
{