|
|
@ -17,6 +17,7 @@ const version = require("../../package.json").version;
|
|
|
|
const apicache = require("../modules/apicache");
|
|
|
|
const apicache = require("../modules/apicache");
|
|
|
|
const { UptimeKumaServer } = require("../uptime-kuma-server");
|
|
|
|
const { UptimeKumaServer } = require("../uptime-kuma-server");
|
|
|
|
const { CacheableDnsHttpAgent } = require("../cacheable-dns-http-agent");
|
|
|
|
const { CacheableDnsHttpAgent } = require("../cacheable-dns-http-agent");
|
|
|
|
|
|
|
|
const { DockerHost } = require("../docker");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* status:
|
|
|
|
* status:
|
|
|
@ -498,7 +499,7 @@ class Monitor extends BeanModel {
|
|
|
|
if (dockerHost._dockerType === "socket") {
|
|
|
|
if (dockerHost._dockerType === "socket") {
|
|
|
|
options.socketPath = dockerHost._dockerDaemon;
|
|
|
|
options.socketPath = dockerHost._dockerDaemon;
|
|
|
|
} else if (dockerHost._dockerType === "tcp") {
|
|
|
|
} else if (dockerHost._dockerType === "tcp") {
|
|
|
|
options.baseURL = dockerHost._dockerDaemon;
|
|
|
|
options.baseURL = DockerHost.patchDockerURL(dockerHost._dockerDaemon);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log.debug(`[${this.name}] Axios Request`);
|
|
|
|
log.debug(`[${this.name}] Axios Request`);
|
|
|
|