Comparing version 9.1.0 to 9.1.1
@@ -176,6 +176,10 @@ #!/usr/bin/env node | ||
const address = details.address === '::' ? 'localhost' : details.address; | ||
const {address: ip} = await lookup(os.hostname()); | ||
localAddress = `http://${address}:${details.port}`; | ||
networkAddress = `http://${ip}:${details.port}`; | ||
try { | ||
const {address: ip} = await lookup(os.hostname()); | ||
networkAddress = `http://${ip}:${details.port}`; | ||
} catch (err) { | ||
console.error(error(`DNS lookup failed: ${err.message}`)); | ||
} | ||
} | ||
@@ -182,0 +186,0 @@ |
{ | ||
"name": "serve", | ||
"version": "9.1.0", | ||
"version": "9.1.1", | ||
"description": "Static file serving and directory listing", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14708
294