diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-15 11:35:58 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-15 12:10:43 +0900 |
commit | 8891f47b12c6c76edaa6e51992c33034f532ca6c (patch) | |
tree | fe32707d8d3d2d4a465749ed2bab122785717ddb | |
parent | 7a0bbc22d8ec47daad3b0a2c77d400bcdf98d214 (diff) |
server: avoid as loop check in filterpath() for rs peer
We don't import as loop path into rs peer's table. So no need to check
again.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index 42ab5c08..2c033e21 100644 --- a/server/server.go +++ b/server/server.go @@ -530,7 +530,7 @@ func filterpath(peer *Peer, path *table.Path) *table.Path { return nil } - if isASLoop(peer, path) { + if !peer.isRouteServerClient() && isASLoop(peer, path) { return nil } return path.Clone(remoteAddr, path.IsWithdraw) |