move constant

This commit is contained in:
Girish Ramakrishnan
2017-10-10 19:47:21 -07:00
parent 56d794745b
commit b60cbe5a55
2 changed files with 2 additions and 3 deletions

View File

@@ -235,6 +235,6 @@ function tlsKey() {
}
function hasIPv6() {
// require here to avoid cyclic dependencies, it is cached anyways
return fs.existsSync(require('./paths.js').IPV6_PROC_FILE);
const IPV6_PROC_FILE = '/proc/net/if_inet6';
return fs.existsSync(IPV6_PROC_FILE);
}