Browse Source

Fix make-etcd for ip:port

master
Vitaliy Filippov 3 months ago
parent
commit
8972878c77
  1. 2
      mon/make-etcd

2
mon/make-etcd

@ -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)
{

Loading…
Cancel
Save