|
|
@ -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);
|
|
|
|