From 2ee4175437bbfcddf98e5eacba9b019113716ac8 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 1 May 2024 19:34:25 +0200 Subject: Remove electron entirely (#2859) Co-authored-by: rejbasket --- electron/service/utils/getLocalIP.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 electron/service/utils/getLocalIP.js (limited to 'electron/service/utils/getLocalIP.js') diff --git a/electron/service/utils/getLocalIP.js b/electron/service/utils/getLocalIP.js deleted file mode 100644 index 14926ee2..00000000 --- a/electron/service/utils/getLocalIP.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict' - -const os = require('os') - -module.exports = function getLocalIP() { - const interfaces = os.networkInterfaces() - - for (const devName in interfaces) { - const iface = interfaces[devName] - for (let i = 0; i < iface.length; i++) { - const alias = iface[i] - if (alias.family === 'IPv4' && alias.address !== '127.0.0.1' && !alias.internal) { - return alias.address - } - } - } -} -- cgit v1.2.3