fold sysinfo into network
the backends are network backends
This commit is contained in:
@@ -48,13 +48,13 @@ const acme2 = require('./acme2.js'),
|
||||
eventlog = require('./eventlog.js'),
|
||||
fs = require('fs'),
|
||||
mail = require('./mail.js'),
|
||||
network = require('./network.js'),
|
||||
os = require('os'),
|
||||
path = require('path'),
|
||||
paths = require('./paths.js'),
|
||||
safe = require('safetydance'),
|
||||
settings = require('./settings.js'),
|
||||
shell = require('./shell.js'),
|
||||
sysinfo = require('./sysinfo.js'),
|
||||
util = require('util'),
|
||||
validator = require('validator');
|
||||
|
||||
@@ -448,7 +448,7 @@ async function writeDashboardNginxConfig(vhost, certificatePath) {
|
||||
const data = {
|
||||
sourceDir: path.resolve(__dirname, '..'),
|
||||
vhost,
|
||||
hasIPv6: sysinfo.hasIPv6(),
|
||||
hasIPv6: network.hasIPv6(),
|
||||
endpoint: 'dashboard',
|
||||
certFilePath: certificatePath.certFilePath,
|
||||
keyFilePath: certificatePath.keyFilePath,
|
||||
@@ -486,7 +486,7 @@ async function writeAppLocationNginxConfig(app, location, certificatePath) {
|
||||
const data = {
|
||||
sourceDir: path.resolve(__dirname, '..'),
|
||||
vhost,
|
||||
hasIPv6: sysinfo.hasIPv6(),
|
||||
hasIPv6: network.hasIPv6(),
|
||||
ip: null,
|
||||
port: null,
|
||||
endpoint: null,
|
||||
@@ -713,7 +713,7 @@ async function writeDefaultConfig(options) {
|
||||
const data = {
|
||||
sourceDir: path.resolve(__dirname, '..'),
|
||||
vhost: '',
|
||||
hasIPv6: sysinfo.hasIPv6(),
|
||||
hasIPv6: network.hasIPv6(),
|
||||
endpoint: options.activated ? 'ip' : 'setup',
|
||||
certFilePath,
|
||||
keyFilePath,
|
||||
|
||||
Reference in New Issue
Block a user