mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
prevent null workstation #'s from passing..
to axios-ntlm
This commit is contained in:
parent
0bd1c42080
commit
cf2ca71dee
1 changed files with 9 additions and 3 deletions
|
@ -279,12 +279,18 @@ class Monitor extends BeanModel {
|
||||||
if (this.auth_method === "ntlm") {
|
if (this.auth_method === "ntlm") {
|
||||||
options.httpsAgent.keepAlive = true;
|
options.httpsAgent.keepAlive = true;
|
||||||
|
|
||||||
res = await httpNtlm(options, {
|
let ntlmOptions =
|
||||||
|
{
|
||||||
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,
|
}
|
||||||
});
|
|
||||||
|
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