mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
Merge pull request #837 from balena-io/836-unexposed-ip-address
api: Ensure Supervisor API returns IP addresses
This commit is contained in:
commit
8391ca741a
@ -301,7 +301,7 @@ module.exports = class DeviceState extends EventEmitter
|
|||||||
if changedConfig.connectivityCheckEnabled?
|
if changedConfig.connectivityCheckEnabled?
|
||||||
network.enableConnectivityCheck(changedConfig.connectivityCheckEnabled)
|
network.enableConnectivityCheck(changedConfig.connectivityCheckEnabled)
|
||||||
console.log('Starting periodic check for IP addresses')
|
console.log('Starting periodic check for IP addresses')
|
||||||
network.startIPAddressUpdate (addresses) =>
|
network.startIPAddressUpdate() (addresses) =>
|
||||||
@reportCurrentState(
|
@reportCurrentState(
|
||||||
ip_address: addresses.join(' ')
|
ip_address: addresses.join(' ')
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user