Commit 23c4aa2 1 parent 1758f29 commit 23c4aa2 Copy full SHA for 23c4aa2
File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -54,19 +54,19 @@ class HttpRequestServiceAgent extends http.Agent {
54
54
}
55
55
} ) ;
56
56
return socket ;
57
- } ;
57
+ }
58
58
59
59
@bindThis
60
60
private isPrivateIp ( ip : string ) : boolean {
61
61
const parsedIp = ipaddr . parse ( ip ) ;
62
-
62
+
63
63
for ( const net of this . config . allowedPrivateNetworks ?? [ ] ) {
64
64
const cidr = ipaddr . parseCIDR ( net ) ;
65
65
if ( cidr [ 0 ] . kind ( ) === parsedIp . kind ( ) && parsedIp . match ( ipaddr . parseCIDR ( net ) ) ) {
66
66
return false ;
67
67
}
68
68
}
69
-
69
+
70
70
return parsedIp . range ( ) !== 'unicast' ;
71
71
}
72
72
}
@@ -98,14 +98,14 @@ class HttpsRequestServiceAgent extends https.Agent {
98
98
@bindThis
99
99
private isPrivateIp ( ip : string ) : boolean {
100
100
const parsedIp = ipaddr . parse ( ip ) ;
101
-
101
+
102
102
for ( const net of this . config . allowedPrivateNetworks ?? [ ] ) {
103
103
const cidr = ipaddr . parseCIDR ( net ) ;
104
104
if ( cidr [ 0 ] . kind ( ) === parsedIp . kind ( ) && parsedIp . match ( ipaddr . parseCIDR ( net ) ) ) {
105
105
return false ;
106
106
}
107
107
}
108
-
108
+
109
109
return parsedIp . range ( ) !== 'unicast' ;
110
110
}
111
111
}
Original file line number Diff line number Diff line change @@ -192,8 +192,7 @@ export class InboxProcessorService implements OnApplicationShutdown {
192
192
if ( signerHost !== activityIdHost ) {
193
193
throw new Bull . UnrecoverableError ( `skip: signerHost(${ signerHost } ) !== activity.id host(${ activityIdHost } ` ) ;
194
194
}
195
- }
196
- else {
195
+ } else {
197
196
throw new Bull . UnrecoverableError ( 'skip: activity id is not a string' ) ;
198
197
}
199
198
You can’t perform that action at this time.
0 commit comments