We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d398327 commit 6a59654Copy full SHA for 6a59654
library/sinks/Fetch.ts
@@ -64,6 +64,7 @@ export class Fetch implements Wrapper {
64
return undefined;
65
}
66
67
+ // We'll set a global dispatcher that will allow us to inspect the resolved IPs (and thus preventing TOCTOU attacks)
68
private patchGlobalDispatcher(agent: Agent) {
69
const undiciGlobalDispatcherSymbol = Symbol.for(
70
"undici.globalDispatcher.1"
@@ -87,7 +88,6 @@ export class Fetch implements Wrapper {
87
88
89
90
try {
- // We'll set a global dispatcher that will inspect the resolved IP address (and thus preventing TOCTOU attacks)
91
// @ts-expect-error Type is not defined
92
globalThis[undiciGlobalDispatcherSymbol] = new dispatcher.constructor({
93
connect: {
0 commit comments