mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-07-13 08:07:11 +02:00
Add initial 11ty website structure
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
const os = require("node:os");
|
||||
|
||||
const INTERFACE_FAMILIES = ["IPv4"];
|
||||
|
||||
module.exports = function() {
|
||||
return Object.values(os.networkInterfaces()).flat().filter(interface => {
|
||||
return interface.internal === false && INTERFACE_FAMILIES.includes(interface.family);
|
||||
}).map(interface => interface.address);
|
||||
};
|
||||
Reference in New Issue
Block a user