diff --git a/package-lock.json b/package-lock.json index 24f4cca4..87342813 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "uptime-kuma", - "version": "1.16.1", + "version": "1.17.0-beta.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "uptime-kuma", - "version": "1.16.1", + "version": "1.17.0-beta.0", "license": "MIT", "dependencies": { "@fortawesome/fontawesome-svg-core": "~1.2.36", diff --git a/server/model/monitor.js b/server/model/monitor.js index 77487530..3e026fb6 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -279,17 +279,12 @@ class Monitor extends BeanModel { if (this.auth_method === "ntlm") { options.httpsAgent.keepAlive = true; - let ntlmOptions = { + res = await httpNtlm(options, { username: this.basic_auth_user, password: this.basic_auth_pass, domain: this.authDomain, - }; - - if (this.authWorkstation) { - ntlmOptions.workstation = this.authWorkstation; - } - - res = await httpNtlm(options, ntlmOptions); + workstation: this.authWorkstation ? this.authWorkstation : undefined + }); } else { res = await axiosClient.request(options);