mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
cleaned up code
This commit is contained in:
parent
98f3c126e5
commit
660005b143
2 changed files with 5 additions and 10 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "uptime-kuma",
|
"name": "uptime-kuma",
|
||||||
"version": "1.16.1",
|
"version": "1.17.0-beta.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "uptime-kuma",
|
"name": "uptime-kuma",
|
||||||
"version": "1.16.1",
|
"version": "1.17.0-beta.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "~1.2.36",
|
"@fortawesome/fontawesome-svg-core": "~1.2.36",
|
||||||
|
|
|
@ -279,17 +279,12 @@ class Monitor extends BeanModel {
|
||||||
if (this.auth_method === "ntlm") {
|
if (this.auth_method === "ntlm") {
|
||||||
options.httpsAgent.keepAlive = true;
|
options.httpsAgent.keepAlive = true;
|
||||||
|
|
||||||
let ntlmOptions = {
|
res = await httpNtlm(options, {
|
||||||
username: this.basic_auth_user,
|
username: this.basic_auth_user,
|
||||||
password: this.basic_auth_pass,
|
password: this.basic_auth_pass,
|
||||||
domain: this.authDomain,
|
domain: this.authDomain,
|
||||||
};
|
workstation: this.authWorkstation ? this.authWorkstation : undefined
|
||||||
|
});
|
||||||
if (this.authWorkstation) {
|
|
||||||
ntlmOptions.workstation = this.authWorkstation;
|
|
||||||
}
|
|
||||||
|
|
||||||
res = await httpNtlm(options, ntlmOptions);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
res = await axiosClient.request(options);
|
res = await axiosClient.request(options);
|
||||||
|
|
Loading…
Reference in a new issue