MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getLoInterface

Function getLoInterface

javascript/selenium-webdriver/net/index.js:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20const os = require('node:os')
21
22function getLoInterface() {
23 let name
24 if (process.platform === 'darwin') {
25 name = 'lo0'
26 } else if (process.platform === 'linux') {
27 name = 'lo'
28 }
29 return name ? os.networkInterfaces()[name] : null
30}
31
32/**
33 * Queries the system network interfaces for an IP address.

Callers 1

getIPAddressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected