Skip to content

Commit 1bcab1f

Browse files
Remove comment referencing old IP based tracking (ava-labs#1509)
1 parent 824c3b2 commit 1bcab1f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

network/network.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -746,13 +746,6 @@ func (n *network) Dispatch() error {
746746
// Note: listener.Accept is rate limited outside of this package, so a
747747
// peer can not just arbitrarily spin up goroutines here.
748748
go func() {
749-
// We pessimistically drop an incoming connection if the remote
750-
// address is found in connectedIPs, myIPs, or peerAliasIPs. This
751-
// protects our node from spending CPU cycles on TLS handshakes to
752-
// upgrade connections from existing peers. Specifically, this can
753-
// occur when one of our existing peers attempts to connect to one
754-
// our IP aliases (that they aren't yet aware is an alias).
755-
//
756749
// Note: Calling [RemoteAddr] with the Proxy protocol enabled may
757750
// block for up to ProxyReadHeaderTimeout. Therefore, we ensure to
758751
// call this function inside the go-routine, rather than the main

0 commit comments

Comments
 (0)