Commit 35889ad
eg/870-add-circuit-relay-dcutr-autonat-demonstration (libp2p#975)
* added layout of full nat traversal example
* refactored circuit relay module to accept reservation
* fixed DCUtRs false positive connection
* Fix linting, type checking, test failures, and documentation issues
- Fix AutoNATService type mismatch by casting IHost to BasicHost
- Add type: ignore comments for raw_conn attribute access (implementation-specific)
- Fix stream handler type mismatch in listener.py with proper casting
- Fix all line length violations (E501) by breaking long lines
- Remove unused variable listener_peer_info
- Fix docstring format (D301) by using raw string for backslashes
- Fix DCUtR test failures by restoring cache trust in _have_direct_connection
- Add examples.nat to documentation toctree to fix build warning
All linting, type checking, tests, and documentation builds now pass.
* added newsfragement
---------
Co-authored-by: Manu Sheel Gupta <[email protected]>
Co-authored-by: acul71 <[email protected]>1 parent cec7750 commit 35889ad
File tree
8 files changed
+1297
-20
lines changed- docs
- examples/nat
- libp2p/relay/circuit_v2
- newsfragments
8 files changed
+1297
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments