reject unauthorized
This commit is contained in:
1 parent
686b96d4b3
commit
5876b97ede
19 files changed
+37
-14
No files matched your search
@@ -623,6 +623,7 @@ class MonitorService implements IMonitorService {
|
||||
"name",
|
||||
"secret",
|
||||
"interval",
|
||||
"rejectUnauthorized",
|
||||
"n",
|
||||
"notificationChannels",
|
||||
];
|
||||
|
||||
@@ -119,7 +119,9 @@ class NetworkService implements INetworkService {
|
||||
|
||||
let certificateExpiry: Date | null = null;
|
||||
try {
|
||||
const req: any = this.client(url);
|
||||
const req: any = this.client(url, {
|
||||
https: { rejectUnauthorized: monitor.rejectUnauthorized },
|
||||
});
|
||||
req.on("request", (nodeReq: ClientRequest) => {
|
||||
nodeReq.on("socket", (socket: TLSSocket) => {
|
||||
const capture = () => {
|
||||
|
||||
Reference in new issue
Block a user