Module returning hostname value
- Description:
Module returning hostname value
- Source:
Methods
(static) getHost(callback)
- Description:
Function to get the hostname/ip address/url to access dashboard
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function | callback function that returns the hostname |
(inner) getNetworkIP(callback)
- Description:
Try to get ip address through network, by connecting to external resource
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function | callback function that returns the ip address |
(inner) stripTrailingSlash(str) → {string}
- Description:
Strip trailing slash
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
str |
string | string from which to remove trailing slash |
Returns:
modified string
- Type
- string