* 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')
| 73 | * @return {(string|undefined)} The IP address or undefined if not available. |
| 74 | */ |
| 75 | function 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 |
nothing calls this directly
no test coverage detected