mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Fix setOptions cache poisoning when one node's auth load fails
This commit is contained in:
parent
266167cf53
commit
42cb3c76e8
2 changed files with 4 additions and 4 deletions
|
|
@ -204,9 +204,9 @@ export class CommonService {
|
|||
};
|
||||
|
||||
public setOptions = (req) => {
|
||||
if (this.nodes[0].authentication.options && this.nodes[0].authentication.options.headers) { return; }
|
||||
if (this.nodes && this.nodes.length > 0) {
|
||||
this.nodes.forEach((node) => {
|
||||
if (node.authentication.options && node.authentication.options.headers) { return; }
|
||||
node.authentication.options = {
|
||||
url: '',
|
||||
rejectUnauthorized: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue