diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/peer.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go index 3aa87e9d..f3a23d5b 100644 --- a/server/peer.go +++ b/server/peer.go @@ -106,8 +106,7 @@ func (peer *Peer) path2update(pathList []table.Path) []*bgp.BGPMessage { func (peer *Peer) handleREST(restReq *api.RestRequest) { result := &api.RestResponseDefault{} - j, _ := json.Marshal(peer.rib.Tables[bgp.RF_IPv4_UC]) - result.Data = j + result.Data = peer.rib.Tables[bgp.RF_IPv4_UC] restReq.ResponseCh <- result close(restReq.ResponseCh) } |