summaryrefslogtreecommitdiff
path: root/electron/service/utils/getLocalIP.js
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-05-01 19:34:25 +0200
committerGitHub <noreply@github.com>2024-05-01 19:34:25 +0200
commit2ee4175437bbfcddf98e5eacba9b019113716ac8 (patch)
treeaff6c7c9adfc27f0f33ab4e14edcf17829dbb282 /electron/service/utils/getLocalIP.js
parenteb64c88a8bf9c8fe66c33a5309d28e526b994d25 (diff)
Remove electron entirely (#2859)
Co-authored-by: rejbasket
Diffstat (limited to 'electron/service/utils/getLocalIP.js')
-rw-r--r--electron/service/utils/getLocalIP.js17
1 files changed, 0 insertions, 17 deletions
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
- }
- }
- }
-}