mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-27 22:39:41 +00:00
network: Ignore resin-redsocks and balena-redsocks when reporting IP addresses
Change-type: patch Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
parent
31e730600d
commit
0a4eefa9c6
@ -88,7 +88,7 @@ exports.getIPAddresses = ->
|
|||||||
# - the docker network for the supervisor API (supervisor0)
|
# - the docker network for the supervisor API (supervisor0)
|
||||||
# - custom docker network bridges (br- + 12 hex characters)
|
# - custom docker network bridges (br- + 12 hex characters)
|
||||||
_.flatten(_.map(_.omitBy(os.networkInterfaces(), (interfaceFields, interfaceName) ->
|
_.flatten(_.map(_.omitBy(os.networkInterfaces(), (interfaceFields, interfaceName) ->
|
||||||
/^(?:balena|docker|rce|tun)[0-9]+|tun[0-9]+|resin-vpn|lo|resin-dns|supervisor0|br-[0-9a-f]{12}$/.test(interfaceName))
|
/^(?:balena|docker|rce|tun)[0-9]+|tun[0-9]+|resin-vpn|lo|resin-dns|supervisor0|balena-redsocks|resin-redsocks|br-[0-9a-f]{12}$/.test(interfaceName))
|
||||||
, (validInterfaces) ->
|
, (validInterfaces) ->
|
||||||
_.map(_.pickBy(validInterfaces, family: 'IPv4'), 'address'))
|
_.map(_.pickBy(validInterfaces, family: 'IPv4'), 'address'))
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user