From 4912be906f7663960474a34a3ba04c6c227dc91a Mon Sep 17 00:00:00 2001 From: JanHolger Date: Sun, 31 Oct 2021 16:42:49 +0100 Subject: Removed router-id filter because it didn't work properly --- src/main/java/com/lumaserv/bgp/BGPServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/lumaserv/bgp/BGPServer.java b/src/main/java/com/lumaserv/bgp/BGPServer.java index 2e960fe..d06f341 100644 --- a/src/main/java/com/lumaserv/bgp/BGPServer.java +++ b/src/main/java/com/lumaserv/bgp/BGPServer.java @@ -43,7 +43,7 @@ public class BGPServer implements Runnable { continue; BGPOpen request = new BGPOpen(packet.getMessage()); BGPSessionConfiguration config = sessionConfigurations.stream() - .filter(c -> c.getRemoteAs() == request.getAsn() && checkEqual(c.getRemoteIdentifier(), request.getIdentifier())) + .filter(c -> c.getRemoteAs() == request.getAsn()) .findFirst() .orElse(null); if(config == null) -- cgit v1.2.3