File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " lup-system" ,
3- "version" : " 1.5.3 " ,
3+ "version" : " 1.5.4 " ,
44 "description" : " NodeJS library to retrieve system information and utilization." ,
55 "main" : " ./lib/index" ,
66 "types" : " ./lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -302,9 +302,14 @@ export function isPublicIp(ip: string): boolean {
302302 return false ;
303303}
304304
305- export async function getRealNetworkInterfaces ( ) : Promise < NICInfo [ ] > {
305+ /**
306+ * Returns the primary network interfaces on the system.
307+ *
308+ * @returns List of primary NICInfo objects.
309+ */
310+ export async function getPrimaryNetworkInterfaces ( ) : Promise < NICInfo [ ] > {
306311 const allNics = await getNetworkInterfaces ( ) ;
307- return allNics . filter ( ( nic ) => true ) ;
312+ return allNics . filter ( ( nic ) => nic . primary ) ;
308313}
309314
310315/**
You can’t perform that action at this time.
0 commit comments