src/vs/base/node/macAddress.ts/doGetMac
function doGetMac(): Promise<string> {
	return new Promise((resolve, reject) => {
		try {
			const ifaces = networkInterfaces();
			for (let name in ifaces) {
				const networkInterface = ifaces[name];
				if (networkInterface) {
					for (const { mac } of networkInterface) {
						if (validateMacAddress(mac)) {
							return resolve(mac);
						}
					}
				}
			}

			reject('Unable to retrieve mac address (unexpected format)');
		} catch (err) {
			reject(err);
		}
	});
}