Files
story-studio/remotion/node_modules/@remotion/studio-server/dist/get-network-address.js
2026-02-21 10:33:18 +01:00

17 lines
581 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNetworkAddress = void 0;
const node_os_1 = require("node:os");
const getNetworkAddress = () => {
for (const interfaceDetails of Object.values((0, node_os_1.networkInterfaces)())) {
if (!interfaceDetails)
continue;
for (const details of interfaceDetails) {
const { address, family, internal } = details;
if (family === 'IPv4' && !internal)
return address;
}
}
};
exports.getNetworkAddress = getNetworkAddress;