Commit 4b14606
committed
fix(rlpx): gate IPv6 dual-stack TCP binding on DiscV5
DiscV4 cannot advertise IPv6 addresses so binding a second RLPx TCP
socket with DiscV4 serves no useful purpose and could surprise operators
expecting unchanged behaviour.
Only enable the IPv6 RLPx socket when both discovery and DiscV5 are
active. The guard can be removed once DiscV4 is deprecated and removed.
Signed-off-by: Usman Saleem <usman@usmans.info>1 parent d75269d commit 4b14606
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
709 | 714 | | |
710 | 715 | | |
711 | 716 | | |
712 | 717 | | |
713 | | - | |
714 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
715 | 723 | | |
716 | 724 | | |
717 | 725 | | |
| |||
0 commit comments