diff --git a/mon/make-etcd b/mon/make-etcd index 0ae23f00..3c4623aa 100755 --- a/mon/make-etcd +++ b/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) {