Commit dec3803
committed
bep-42: implement enforcement
Do not accept a get_peer search response if the node ID prefix does not match
its external IP address.
Introduce DHT_BEP42_ENFORCE macro to enable enforcement (disabled by default).1 parent ab91375 commit dec3803
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
| |||
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
459 | 473 | | |
460 | 474 | | |
461 | 475 | | |
| |||
2299 | 2313 | | |
2300 | 2314 | | |
2301 | 2315 | | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
2302 | 2319 | | |
| 2320 | + | |
2303 | 2321 | | |
2304 | 2322 | | |
2305 | 2323 | | |
| |||
0 commit comments