allow protocol, port & path in fallback urls
This commit is contained in:
parent
ae5e1e6d29
commit
85935d8f90
@ -32,7 +32,7 @@ class FailoverRouter {
|
|||||||
// setup list of hosts
|
// setup list of hosts
|
||||||
this.hosts = (config.ESPLORA.FALLBACK || []).map(domain => {
|
this.hosts = (config.ESPLORA.FALLBACK || []).map(domain => {
|
||||||
return {
|
return {
|
||||||
host: 'https://' + domain + '/api',
|
host: domain,
|
||||||
rtts: [],
|
rtts: [],
|
||||||
rtt: Infinity,
|
rtt: Infinity,
|
||||||
failures: 0,
|
failures: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user