From 0b78f57ccdf63591fd211ade0b571189e070f598 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 19 Feb 2016 15:40:30 +0900 Subject: config/server: support per-peer asn you can override `global.config.as` by `neighbor.config.local-as` Signed-off-by: ISHIDA Wataru --- server/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/peer.go') diff --git a/server/peer.go b/server/peer.go index b8b8d5a8..07a1288b 100644 --- a/server/peer.go +++ b/server/peer.go @@ -265,7 +265,7 @@ func (peer *Peer) ToApiStruct() *api.Peer { } } - caps := capabilitiesFromConfig(&peer.gConf, &peer.conf) + caps := capabilitiesFromConfig(&peer.conf) localCap := make([][]byte, 0, len(caps)) for _, c := range caps { buf, _ := c.Serialize() -- cgit v1.2.3