Skip to content

Commit

Permalink
Fix bizarre missing import and extra code lines in guessing the ip of…
Browse files Browse the repository at this point in the history
… the computer
  • Loading branch information
LordTocs committed Jan 18, 2024
1 parent 1b47800 commit 91235c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/castmate/src/main/utils/os.js
Expand Up @@ -4,6 +4,7 @@ import logger from "./logger.js"
import thumbsupply from "thumbsupply"
import { app, dialog } from "./electronBridge.js"
import path from "path"
import os from "os"

export function osInit() {
logger.info("Initing OS Util Funcs")
Expand Down Expand Up @@ -52,9 +53,6 @@ export function getLocalIP() {
for (let net of interfaces[interfaceKeys]) {
const familyV4Value = typeof net.family === "string" ? "IPv4" : 4
if (net.family === familyV4Value && !net.internal) {
if (!results[name]) {
results[name] = []
}
return net.address
}
}
Expand Down

0 comments on commit 91235c7

Please sign in to comment.