File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments