From 954e05b72f3c565957e88237270de176c4a219ca Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 18 Nov 2023 11:33:34 +0800 Subject: [PATCH] Fix #4051 --- package.json | 3 ++- server/model/monitor.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f55d12a8..59797ad8 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,8 @@ "cypress-open": "concurrently -k -r \"node test/prepare-test-server.js && node server/server.js --port=3002 --data-dir=./data/test/\" \"cypress open --config-file ./config/cypress.config.js\"", "build-healthcheck-armv7": "cross-env GOOS=linux GOARCH=arm GOARM=7 go build -x -o ./extra/healthcheck-armv7 ./extra/healthcheck.go", "deploy-demo-server": "node extra/deploy-demo-server.js", - "sort-contributors": "node extra/sort-contributors.js" + "sort-contributors": "node extra/sort-contributors.js", + "start-server-node14-win": "private\\node14\\node.exe server/server.js" }, "dependencies": { "@grpc/grpc-js": "~1.7.3", diff --git a/server/model/monitor.js b/server/model/monitor.js index 194980a1..f7cbff30 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -22,6 +22,7 @@ const { UptimeCacheList } = require("../uptime-cache-list"); const Gamedig = require("gamedig"); const jsonata = require("jsonata"); const jwt = require("jsonwebtoken"); +const crypto = require("crypto"); const rootCertificates = rootCertificatesFingerprints();