mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 06:29:17 -04:00
Merge branch '1.14.X'
# Conflicts: # package.json # server/server.js
This commit is contained in:
commit
29d2d95c71
9 changed files with 112 additions and 83 deletions
|
@ -3,7 +3,7 @@ const HttpProxyAgent = require("http-proxy-agent");
|
|||
const HttpsProxyAgent = require("https-proxy-agent");
|
||||
const SocksProxyAgent = require("socks-proxy-agent");
|
||||
const { debug } = require("../src/util");
|
||||
const server = require("./server");
|
||||
const { UptimeKumaServer } = require("./uptime-kuma-server");
|
||||
|
||||
class Proxy {
|
||||
|
||||
|
@ -151,6 +151,8 @@ class Proxy {
|
|||
* @returns {Promise<void>}
|
||||
*/
|
||||
static async reloadProxy() {
|
||||
const server = UptimeKumaServer.getInstance();
|
||||
|
||||
let updatedList = await R.getAssoc("SELECT id, proxy_id FROM monitor");
|
||||
|
||||
for (let monitorID in server.monitorList) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue