Release 4.8.2

This commit is contained in:
tsightler
2021-09-11 08:36:20 -04:00
parent b09e1eaecb
commit 4959f32758
2 changed files with 55 additions and 51 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'