rename base.nettool to base.tool

This commit is contained in:
陆柯 2022-03-11 10:51:40 +08:00
parent ea60281bf3
commit b5de51a72d
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@
"morgan": "^1.9.0",
"serve-favicon": "^2.5.0",
"base.enviconfig": "git+https://git.faronear.org/npm/base.enviconfig",
"base.nettool": "git+https://git.faronear.org/npm/base.nettool",
"base.tool": "git+https://git.faronear.org/npm/base.tool",
"vhost": "^3.0.2"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
const fs = require('fs')
const path = require('path')
const nettool = require('base.nettool')
const tool4net = require('base.tool/tool4net.js')
const express = require('express')
const wo = (global.wo = {
@ -84,7 +84,7 @@ if (typeof wo.envi.ssl === 'string') {
/*** 启动 Web 服务 ***/
let webServer
let ipv4 = nettool.getMyIp()
let ipv4 = tool4net.getMyIp()
if ('http' === wo.envi.protocol) {
let portHttp = wo.envi.port || 80
webServer = require('http')