@@ -262,8 +262,8 @@ t.test("bypassed ips support cidr", async () => {
262262t . test ( "it sets and updates monitored IP lists" , async ( t ) => {
263263 const config = new ServiceConfig ( [ ] , 0 , [ ] , [ ] , false , [ ] , [ ] ) ;
264264
265- t . same ( config . isMonitoredIPAddress ( "9.9.9.9" ) , false ) ;
266- t . same ( config . isMonitoredIPAddress ( "1.2.3.4" ) , false ) ;
265+ t . same ( config . getMatchingMonitoredIPListKeys ( "9.9.9.9" ) , [ ] ) ;
266+ t . same ( config . getMatchingMonitoredIPListKeys ( "1.2.3.4" ) , [ ] ) ;
267267
268268 config . updateMonitoredIPAddresses ( [
269269 {
@@ -274,13 +274,13 @@ t.test("it sets and updates monitored IP lists", async (t) => {
274274 } ,
275275 ] ) ;
276276
277- t . same ( config . isMonitoredIPAddress ( "9.9.9.9" ) , true ) ;
278- t . same ( config . isMonitoredIPAddress ( "1.2.3.4" ) , true ) ;
277+ t . same ( config . getMatchingMonitoredIPListKeys ( "9.9.9.9" ) , [ "tor/exit_nodes" ] ) ;
278+ t . same ( config . getMatchingMonitoredIPListKeys ( "1.2.3.4" ) , [ "tor/exit_nodes" ] ) ;
279279
280280 config . updateMonitoredIPAddresses ( [ ] ) ;
281281
282- t . same ( config . isMonitoredIPAddress ( "9.9.9.9" ) , false ) ;
283- t . same ( config . isMonitoredIPAddress ( "1.2.3.4" ) , false ) ;
282+ t . same ( config . getMatchingMonitoredIPListKeys ( "9.9.9.9" ) , [ ] ) ;
283+ t . same ( config . getMatchingMonitoredIPListKeys ( "1.2.3.4" ) , [ ] ) ;
284284} ) ;
285285
286286t . test ( "it returns matching IP lists keys" , async ( t ) => {
0 commit comments