Commit 8667a8a
committed
feat(p2p): allow inbound-only peers without underlay addresses
Relax the non-empty underlay validation in bzz.ParseAddress/MarshalJSON so
browser/wasm and strict-NAT peers that cannot be dialed back can still
handshake and use protocols over existing connections. Guard the Connect
addressbook.Put so such peers are not stored for reconnection (v2.8 already
guards handleIncoming and the reacher). Port of pr-5326; peer registry
rename already landed upstream via #5337.
Note: this is a deliberate protocol relaxation vs upstream v2.8.1 parent c05a4b2 commit 8667a8a
2 files changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 201 | + | |
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
806 | | - | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
807 | 810 | | |
808 | 811 | | |
809 | 812 | | |
| |||
0 commit comments