rename base.nettool to base.tool
This commit is contained in:
parent
ea60281bf3
commit
b5de51a72d
@ -26,7 +26,7 @@
|
|||||||
"morgan": "^1.9.0",
|
"morgan": "^1.9.0",
|
||||||
"serve-favicon": "^2.5.0",
|
"serve-favicon": "^2.5.0",
|
||||||
"base.enviconfig": "git+https://git.faronear.org/npm/base.enviconfig",
|
"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"
|
"vhost": "^3.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const nettool = require('base.nettool')
|
const tool4net = require('base.tool/tool4net.js')
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
|
|
||||||
const wo = (global.wo = {
|
const wo = (global.wo = {
|
||||||
@ -84,7 +84,7 @@ if (typeof wo.envi.ssl === 'string') {
|
|||||||
|
|
||||||
/*** 启动 Web 服务 ***/
|
/*** 启动 Web 服务 ***/
|
||||||
let webServer
|
let webServer
|
||||||
let ipv4 = nettool.getMyIp()
|
let ipv4 = tool4net.getMyIp()
|
||||||
if ('http' === wo.envi.protocol) {
|
if ('http' === wo.envi.protocol) {
|
||||||
let portHttp = wo.envi.port || 80
|
let portHttp = wo.envi.port || 80
|
||||||
webServer = require('http')
|
webServer = require('http')
|
||||||
|
Loading…
Reference in New Issue
Block a user