Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commitf86b17a
*GH-113171: Fix "private" (non-global) IP address ranges (GH-113179)The _private_networks variables, used by various is_privateimplementations, were missing some ranges and at the same time hadoverly strict ranges (where there are more specific ranges consideredglobally reachable by the IANA registries).This patch updates the ranges with what was missing or otherwiseincorrect.100.64.0.0/10 is left alone, for now, as it's been made special in [1].The _address_exclude_many() call returns 8 networks for IPv4, 121networks for IPv6.[1]#61602*GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186)It wasn't clear what the semantics of is_global/is_private are and, whenone gets to the bottom of it, it's not quite so simple (hence theexceptions listed).(cherry picked from commit2a4cbf1)(cherry picked from commit40d75c2)---------Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
1 parent2eaf9ba commitf86b17a
File tree
5 files changed
+157
-24
lines changed- Doc
- library
- whatsnew
- Lib
- test
- Misc/NEWS.d/next/Library
5 files changed
+157
-24
lines changedLines changed: 39 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
181 |
| - | |
| 181 | + | |
182 | 182 |
| |
183 |
| - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
184 | 206 |
| |
185 | 207 |
| |
186 | 208 |
| |
187 |
| - | |
| 209 | + | |
188 | 210 |
| |
189 |
| - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
190 | 221 |
| |
191 | 222 |
| |
192 | 223 |
| |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
193 | 228 |
| |
194 | 229 |
| |
195 | 230 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2457 | 2457 |
| |
2458 | 2458 |
| |
2459 | 2459 |
| |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + |
Lines changed: 80 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1086 | 1086 |
| |
1087 | 1087 |
| |
1088 | 1088 |
| |
1089 |
| - | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1090 | 1094 |
| |
1091 | 1095 |
| |
1092 | 1096 |
| |
| |||
1333 | 1337 |
| |
1334 | 1338 |
| |
1335 | 1339 |
| |
1336 |
| - | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1337 | 1343 |
| |
1338 |
| - | |
1339 |
| - | |
1340 |
| - | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1341 | 1348 |
| |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1342 | 1353 |
| |
1343 |
| - | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1344 | 1358 |
| |
1345 | 1359 |
| |
1346 | 1360 |
| |
1347 | 1361 |
| |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
1348 | 1375 |
| |
1349 | 1376 |
| |
1350 | 1377 |
| |
| |||
1548 | 1575 |
| |
1549 | 1576 |
| |
1550 | 1577 |
| |
| 1578 | + | |
| 1579 | + | |
1551 | 1580 |
| |
1552 | 1581 |
| |
1553 | 1582 |
| |
1554 | 1583 |
| |
1555 | 1584 |
| |
1556 | 1585 |
| |
1557 |
| - | |
| 1586 | + | |
1558 | 1587 |
| |
1559 | 1588 |
| |
1560 | 1589 |
| |
| |||
1565 | 1594 |
| |
1566 | 1595 |
| |
1567 | 1596 |
| |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
1568 | 1602 |
| |
1569 | 1603 |
| |
1570 | 1604 |
| |
| |||
2007 | 2041 |
| |
2008 | 2042 |
| |
2009 | 2043 |
| |
2010 |
| - | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
2011 | 2047 |
| |
2012 |
| - | |
2013 |
| - | |
2014 |
| - | |
2015 |
| - | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
2016 | 2052 |
| |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
2017 | 2057 |
| |
2018 | 2058 |
| |
2019 | 2059 |
| |
2020 | 2060 |
| |
2021 |
| - | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2022 | 2065 |
| |
2023 | 2066 |
| |
2024 | 2067 |
| |
2025 |
| - | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2026 | 2071 |
| |
2027 |
| - | |
2028 |
| - | |
2029 |
| - | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2030 | 2077 |
| |
| 2078 | + | |
| 2079 | + | |
2031 | 2080 |
| |
2032 | 2081 |
| |
2033 | 2082 |
| |
| |||
2268 | 2317 |
| |
2269 | 2318 |
| |
2270 | 2319 |
| |
| 2320 | + | |
| 2321 | + | |
2271 | 2322 |
| |
2272 | 2323 |
| |
2273 | 2324 |
| |
2274 | 2325 |
| |
| 2326 | + | |
2275 | 2327 |
| |
2276 | 2328 |
| |
2277 |
| - | |
2278 | 2329 |
| |
2279 |
| - | |
| 2330 | + | |
| 2331 | + | |
2280 | 2332 |
| |
2281 | 2333 |
| |
2282 | 2334 |
| |
2283 | 2335 |
| |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
2284 | 2345 |
| |
2285 | 2346 |
| |
2286 | 2347 |
| |
|
Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2269 | 2269 |
| |
2270 | 2270 |
| |
2271 | 2271 |
| |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
2272 | 2276 |
| |
2273 | 2277 |
| |
2274 | 2278 |
| |
| |||
2294 | 2298 |
| |
2295 | 2299 |
| |
2296 | 2300 |
| |
| 2301 | + | |
2297 | 2302 |
| |
2298 | 2303 |
| |
2299 | 2304 |
| |
| |||
2310 | 2315 |
| |
2311 | 2316 |
| |
2312 | 2317 |
| |
2313 |
| - | |
2314 | 2318 |
| |
| 2319 | + | |
2315 | 2320 |
| |
2316 | 2321 |
| |
2317 | 2322 |
| |
| |||
2390 | 2395 |
| |
2391 | 2396 |
| |
2392 | 2397 |
| |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
2393 | 2412 |
| |
2394 | 2413 |
| |
2395 | 2414 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + |
0 commit comments
Comments
(0)