Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Commit40d75c2
authored
*GH-113171: Fix "private" (really non-global) IP address rangesThe _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.I left 100.64.0.0/10 alone, for now, as it's been made special in [1]and I'm not sure if we want to undo that as I don't quite understand themotivation behind it.The _address_exclude_many() call returns 8 networks for IPv4, 121networks for IPv6.[1]#61602
1 parent3be9b9d commit40d75c2
File tree
5 files changed
+82
-7
lines changed- Doc
- library
- whatsnew
- Lib
- test
- Misc/NEWS.d/next/Library
5 files changed
+82
-7
lines changedLines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
195 | 207 |
| |
196 | 208 |
| |
197 | 209 |
| |
| |||
209 | 221 |
| |
210 | 222 |
| |
211 | 223 |
| |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
212 | 228 |
| |
213 | 229 |
| |
214 | 230 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
401 | 401 |
| |
402 | 402 |
| |
403 | 403 |
| |
| 404 | + | |
| 405 | + | |
404 | 406 |
| |
405 | 407 |
| |
406 | 408 |
| |
|
Lines changed: 35 additions & 6 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 |
| |
| |||
1347 | 1351 |
| |
1348 | 1352 |
| |
1349 | 1353 |
| |
1350 |
| - | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1351 | 1358 |
| |
1352 | 1359 |
| |
1353 | 1360 |
| |
| |||
1578 | 1585 |
| |
1579 | 1586 |
| |
1580 | 1587 |
| |
| 1588 | + | |
| 1589 | + | |
1581 | 1590 |
| |
1582 | 1591 |
| |
1583 | 1592 |
| |
1584 | 1593 |
| |
1585 | 1594 |
| |
1586 | 1595 |
| |
1587 |
| - | |
| 1596 | + | |
1588 | 1597 |
| |
1589 | 1598 |
| |
1590 | 1599 |
| |
| |||
1595 | 1604 |
| |
1596 | 1605 |
| |
1597 | 1606 |
| |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
1598 | 1612 |
| |
1599 | 1613 |
| |
1600 | 1614 |
| |
| |||
2086 | 2100 |
| |
2087 | 2101 |
| |
2088 | 2102 |
| |
2089 |
| - | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
2090 | 2107 |
| |
2091 | 2108 |
| |
2092 | 2109 |
| |
| |||
2342 | 2359 |
| |
2343 | 2360 |
| |
2344 | 2361 |
| |
| 2362 | + | |
| 2363 | + | |
2345 | 2364 |
| |
2346 | 2365 |
| |
2347 | 2366 |
| |
2348 | 2367 |
| |
| 2368 | + | |
2349 | 2369 |
| |
2350 | 2370 |
| |
2351 |
| - | |
2352 | 2371 |
| |
2353 |
| - | |
| 2372 | + | |
| 2373 | + | |
2354 | 2374 |
| |
2355 | 2375 |
| |
2356 | 2376 |
| |
2357 | 2377 |
| |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
2358 | 2387 |
| |
2359 | 2388 |
| |
2360 | 2389 |
| |
|
Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2288 | 2288 |
| |
2289 | 2289 |
| |
2290 | 2290 |
| |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
2291 | 2295 |
| |
2292 | 2296 |
| |
2293 | 2297 |
| |
| |||
2313 | 2317 |
| |
2314 | 2318 |
| |
2315 | 2319 |
| |
| 2320 | + | |
2316 | 2321 |
| |
2317 | 2322 |
| |
2318 | 2323 |
| |
| |||
2329 | 2334 |
| |
2330 | 2335 |
| |
2331 | 2336 |
| |
2332 |
| - | |
2333 | 2337 |
| |
| 2338 | + | |
2334 | 2339 |
| |
2335 | 2340 |
| |
2336 | 2341 |
| |
| |||
2409 | 2414 |
| |
2410 | 2415 |
| |
2411 | 2416 |
| |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
2412 | 2431 |
| |
2413 | 2432 |
| |
2414 | 2433 |
| |
|
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)