Skip to content

Commit 6a59654

Browse files
committed
Move comment up
1 parent d398327 commit 6a59654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/sinks/Fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export class Fetch implements Wrapper {
6464
return undefined;
6565
}
6666

67+
// We'll set a global dispatcher that will allow us to inspect the resolved IPs (and thus preventing TOCTOU attacks)
6768
private patchGlobalDispatcher(agent: Agent) {
6869
const undiciGlobalDispatcherSymbol = Symbol.for(
6970
"undici.globalDispatcher.1"
@@ -87,7 +88,6 @@ export class Fetch implements Wrapper {
8788
}
8889

8990
try {
90-
// We'll set a global dispatcher that will inspect the resolved IP address (and thus preventing TOCTOU attacks)
9191
// @ts-expect-error Type is not defined
9292
globalThis[undiciGlobalDispatcherSymbol] = new dispatcher.constructor({
9393
connect: {

0 commit comments

Comments
 (0)