Release 4.8.2

This commit is contained in:
tsightler
2021-09-14 09:21:42 -04:00
parent 4959f32758
commit b682a78a4e
4 changed files with 12 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ class Utils
async getHostFqdn() {
const pLookupService = promisify(dns.lookupService)
try {
return await (pLookupService(await this.getHostIp(), 0)).hostname
return (await pLookupService(await this.getHostIp(), 0)).hostname
} catch {
console.log('Failed to resolve FQDN, using os.hostname() instead')
return os.hostname()
@@ -45,7 +45,7 @@ class Utils
async getHostIp() {
const pLookup = promisify(dns.lookup)
try {
return await (pLookup(os.hostname())).address
return (await pLookup(os.hostname())).address
} catch {
console.log('Failed to resolve hostname IP address, returning localhost instead')
return 'localhost'