* Detects the hostname. * @return {string} The detected hostname or 'localhost' if not found.
()
| 336 | * @return {string} The detected hostname or 'localhost' if not found. |
| 337 | */ |
| 338 | function getHostName() { |
| 339 | const hostnameFromEnv = process.env.HOSTNAME |
| 340 | return hostnameFromEnv ? hostnameFromEnv : 'localhost' |
| 341 | } |
| 342 | |
| 343 | // PUBLIC application |
| 344 |
nothing calls this directly
no outgoing calls
no test coverage detected