You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bc7bb3a
Browse filesBrowse the repository at this point in the historyBrowse files
* Returns true if the address is in the benchmarking range `198.18.0.0/15` ([RFC 2544](https://datatracker.ietf.org/doc/html/rfc2544)).
517
+
* @returns {boolean}
518
+
*/
519
+
isBenchmarking(){
520
+
returnthis.isHostInSubnet(BENCHMARKING_V4);
521
+
}
522
+
/**
523
+
* Returns true if the address is in the reserved range `240.0.0.0/4` ([RFC 1112](https://datatracker.ietf.org/doc/html/rfc1112)),
524
+
* which includes the limited broadcast address.
525
+
* @returns {boolean}
526
+
*/
527
+
isReserved(){
528
+
returnthis.isHostInSubnet(RESERVED_V4);
529
+
}
530
+
/**
531
+
* Returns true if the address is globally reachable: not multicast, and not
532
+
* in any block the [IANA IPv4 Special-Purpose Address Registry](https://www.iana.org/assignments/iana-ipv4-special-registry/)
533
+
* marks as not globally reachable. That covers everything the individual
534
+
* classifiers name (private, loopback, link-local, CGNAT, unspecified,
535
+
* broadcast, documentation, benchmarking, reserved) and the blocks they do
536
+
* not, such as `0.0.0.0/8` and the IETF protocol assignments in
537
+
* `192.0.0.0/24`. This is the single predicate to use where a request must
538
+
* not reach an internal or special-purpose destination; see SECURITY.md.
0 commit comments