api/parts/mgmt/ip

Module returning hostname value

Source:

Methods

(static) getHost(callback)

Source:

Function to get the hostname/ip address/url to access dashboard

Parameters:
Name Type Description
callback function

callback function that returns the hostname

(inner) getNetworkIP(callback)

Source:

Try to get ip address through network, by connecting to external resource

Parameters:
Name Type Description
callback function

callback function that returns the ip address

(inner) stripTrailingSlash(str) → {string}

Source:

Strip trailing slash

Parameters:
Name Type Description
str string

string from which to remove trailing slash

Returns:

modified string

Type
string