Merge pull request #837 from balena-io/836-unexposed-ip-address

api: Ensure Supervisor API returns IP addresses
This commit is contained in:
Heds Simons 2018-12-07 10:46:19 +00:00 committed by GitHub
commit 8391ca741a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ module.exports = class DeviceState extends EventEmitter
if changedConfig.connectivityCheckEnabled?
network.enableConnectivityCheck(changedConfig.connectivityCheckEnabled)
console.log('Starting periodic check for IP addresses')
network.startIPAddressUpdate (addresses) =>
network.startIPAddressUpdate() (addresses) =>
@reportCurrentState(
ip_address: addresses.join(' ')
)