summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-15 11:35:58 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-15 12:10:43 +0900
commit8891f47b12c6c76edaa6e51992c33034f532ca6c (patch)
treefe32707d8d3d2d4a465749ed2bab122785717ddb
parent7a0bbc22d8ec47daad3b0a2c77d400bcdf98d214 (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.go2
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)