lib/serviceDiscovery/helpers.js
function getAnnouncedIpsForInterface(ifaceName) {
	const addresses = interfaces[ifaceName];

	if (!addresses) {
		throw new Error('Interface ' + ifaceName + ' could not be found');
	}

	const announced = pushIps(addresses, [], true);
	assertNotEmpty(announced, 'Interface ' + ifaceName + ' does not define any IP addresses');

	return announced;
}
function getAnnouncedIpsForInterface(ifaceName) {
	const addresses = interfaces[ifaceName];

	if (!addresses) {
		throw new Error('Interface ' + ifaceName + ' could not be found');
	}

	const announced = pushIps(addresses, [], true);
	assertNotEmpty(announced, 'Interface ' + ifaceName + ' does not define any IP addresses');

	return announced;
}
function getAnnouncedIpsForInterface ( ifaceName ) { const addresses = interfaces [ ifaceName ] ; if ( ! addresses ) { throw new Error ( 'Interface ' + ifaceName + ' could not be found' ) ; } const announced = pushIps ( addresses , [ ] , true ) ; assertNotEmpty ( announced , 'Interface ' + ifaceName + ' does not define any IP addresses' ) ; return announced ; }
Return all valid IP for a single interface

@param {*} ifaceName
Return all valid IP for a single interface