Skip to content

Commit

Permalink
Close incoming kademlia connections too!
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Sep 30, 2024
1 parent 7c67445 commit 89f4ac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/peergos/protocol/dht/KademliaEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public void receiveRequest(Dht.Message msg, PeerId source, Stream stream) {
case PING: {break;} // Not used any more
default: throw new IllegalStateException("Unknown message kademlia type: " + msg.getType());
}
stream.getConnection().close();
}

public static boolean isPublic(Multiaddr addr) {
Expand Down

0 comments on commit 89f4ac5

Please sign in to comment.