summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-09 18:11:10 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-09 18:11:10 +0900
commit28f62b3a04b220ffd5df7ec6f6a46e710dda298e (patch)
tree61241f2f44c12eaa1d3492fe631e3ccdc5b36ceb /server
parentca6eab76c486a038d654b2b33ec2489e727543e3 (diff)
server: fix path.Filtered update
For the case of loosing a policy, we need to set path.Filtered to false. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/peer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go
index 5f92d690..90c73469 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -459,6 +459,7 @@ func (peer *Peer) ApplyPolicy(d PolicyDirection, paths []*table.Path) ([]*table.
switch result {
case policy.ROUTE_TYPE_ACCEPT:
+ path.Filtered = false
newpaths = append(newpaths, newpath)
case policy.ROUTE_TYPE_REJECT:
path.Filtered = true