From da007795fbe7bdb4412c4850e019e2fb32611db9 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Mon, 3 Jun 2019 07:27:12 +0100 Subject: [PATCH] learn about new hosts from incoming connections too --- core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy b/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy index 105e64ca..63bb3472 100644 --- a/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy +++ b/core/src/main/groovy/com/muwire/core/hostcache/HostCache.groovy @@ -55,7 +55,7 @@ class HostCache extends Service { } void onConnectionEvent(ConnectionEvent e) { - if (e.incoming || e.leaf) + if (e.leaf) return Destination dest = e.endpoint.destination Host host = hosts.get(dest)