Skip to content

Commit 3d5cb21

Browse files
committed
Fix merge
1 parent 25c14fa commit 3d5cb21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/sinks/Fetch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export class Fetch implements Wrapper {
2626
agent.onConnectHTTP(url, port, method);
2727
}
2828

29-
if (agent.getConfig().shouldBlockOutgoingRequest(hostname)) {
29+
if (agent.getConfig().shouldBlockOutgoingRequest(url.hostname)) {
3030
return {
3131
operation: "fetch",
32-
hostname: hostname,
32+
hostname: url.hostname,
3333
};
3434
}
3535

library/sinks/Undici.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export class Undici implements Wrapper {
4040
agent.onConnectHTTP(url, port, httpMethod);
4141
}
4242

43-
if (agent.getConfig().shouldBlockOutgoingRequest(hostname)) {
43+
if (agent.getConfig().shouldBlockOutgoingRequest(url.hostname)) {
4444
return {
4545
operation: `undici.${method}`,
46-
hostname: hostname,
46+
hostname: url.hostname,
4747
};
4848
}
4949

0 commit comments

Comments
 (0)