Commit 430a0ca
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 ethersphere#5337.
Note: this is a deliberate protocol relaxation vs upstream v2.8.1 parent 31c9c91 commit 430a0ca
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 | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | | - | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
| |||
0 commit comments