fold sysinfo into network

the backends are network backends
This commit is contained in:
Girish Ramakrishnan
2023-08-03 13:38:42 +05:30
parent a4d57e7b08
commit 47d57a3971
23 changed files with 143 additions and 161 deletions

View File

@@ -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,