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
Rfc1918ClassBPrivateSpec matches IPs out of RFC range.
For example, 172.222.171.197 will match.
This is caused by a missing escaping backslash before the latest dot in the regex.
Actually, the regex is ^172\.(15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31).+, the latest dot is considered as a wildcard character because not escaped, so any IP with a second digit starting with characters 15 to 31 will match.
Adding a backslash before, solve the issue: ^172\.(15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)\.+
Rfc1918ClassBPrivateSpec matches IPs out of RFC range.
For example,
172.222.171.197
will match.This is caused by a missing escaping backslash before the latest dot in the regex.
Actually, the regex is
^172\.(15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31).+
, the latest dot is considered as a wildcard character because not escaped, so any IP with a second digit starting with characters 15 to 31 will match.Adding a backslash before, solve the issue:
^172\.(15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)\.+
Here is a scastie to test: https://scastie.scala-lang.org/ktfISeSZQNG9iLt7MvUg0g
May I send a PR?
Thanks.
The text was updated successfully, but these errors were encountered: