feat: send ping and speedtest URLs to machine
This commit is contained in:
parent
34aa2cfca9
commit
6da243ea7f
1 changed files with 17 additions and 1 deletions
|
|
@ -51,6 +51,20 @@ const settingsCache = {}
|
|||
|
||||
const devMode = argv.dev || options.http
|
||||
|
||||
const urlsToPing = [
|
||||
`us.archive.ubuntu.com`,
|
||||
`uk.archive.ubuntu.com`,
|
||||
`za.archive.ubuntu.com`,
|
||||
`cn.archive.ubuntu.com`
|
||||
]
|
||||
|
||||
const speedtestFiles = [
|
||||
{
|
||||
url: `https://github.com/lamassu/lamassu-machine/releases/download/v7.5.3/python-defaults_2.7.18-3.tar.gz`,
|
||||
size: 8900
|
||||
}
|
||||
]
|
||||
|
||||
function checkHasLightning (settings) {
|
||||
return configManager.getWalletSettings('BTC', settings.config).layer2 !== 'no-layer2'
|
||||
}
|
||||
|
|
@ -110,7 +124,9 @@ function poll (req, res, next) {
|
|||
receipt,
|
||||
operatorInfo,
|
||||
machineInfo,
|
||||
triggers
|
||||
triggers,
|
||||
speedtestFiles,
|
||||
urlsToPing
|
||||
}
|
||||
// BACKWARDS_COMPATIBILITY 7.5
|
||||
// machines before 7.5 expect old compliance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue