From 21b7301e049dc1ac5128001e49ec1a2b194ead7b Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 1 Feb 2016 22:46:33 +0900 Subject: server: fix soft-reset-in to handle in-policy change properly Signed-off-by: ISHIDA Wataru --- table/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'table/path.go') diff --git a/table/path.go b/table/path.go index 65c33a26..12739ec6 100644 --- a/table/path.go +++ b/table/path.go @@ -214,7 +214,7 @@ func (path *Path) ToApiStruct(id string) *api.Path { Age: int64(time.Now().Sub(path.OriginInfo().timestamp).Seconds()), IsWithdraw: path.IsWithdraw, Validation: int32(path.OriginInfo().validation.ToInt()), - Filtered: path.Filtered(id) > POLICY_DIRECTION_NONE, + Filtered: path.Filtered(id) == POLICY_DIRECTION_IN, Family: family, } } -- cgit v1.2.3