Add config.hasIPv6()
This commit is contained in:
@@ -33,6 +33,7 @@ exports = module.exports = {
|
||||
appFqdn: appFqdn,
|
||||
zoneName: zoneName,
|
||||
setZoneName: setZoneName,
|
||||
hasIPv6: hasIPv6,
|
||||
|
||||
isDemo: isDemo,
|
||||
|
||||
@@ -232,3 +233,8 @@ function tlsKey() {
|
||||
var keyFile = path.join(baseDir(), 'configs/host.key');
|
||||
return safe.fs.readFileSync(keyFile, 'utf8');
|
||||
}
|
||||
|
||||
function hasIPv6() {
|
||||
// require here to avoid cyclic dependencies, it is cached anyways
|
||||
return fs.existsSync(require('./paths.js').IPV6_PROC_FILE);
|
||||
}
|
||||
Reference in New Issue
Block a user