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

Function getLoopbackAddress

javascript/selenium-webdriver/net/index.js:75–77  ·  view source on GitHub ↗

* Retrieves a loopback address for this machine. * @param {string=} family The IP family to retrieve. Defaults to "IPv4". * @return {(string|undefined)} The IP address or undefined if not available.

(family = 'IPv4')

Source from the content-addressed store, hash-verified

73 * @return {(string|undefined)} The IP address or undefined if not available.
74 */
75function getLoopbackAddress(family = 'IPv4') {
76 return getIPAddress(true, family)
77}
78
79/**
80 * Splits a hostport string, e.g. "www.example.com:80", into its component

Callers

nothing calls this directly

Calls 1

getIPAddressFunction · 0.85

Tested by

no test coverage detected