summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-25 00:31:50 -0500
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-25 00:31:50 -0500
commite566d55587d1efbbf93975db7ddbf060c86bd1cc (patch)
treea76d4f897e1236784a58587060c85af97c54211f /config
parentfd9f3797aa886513210b65a7791ecb745c758d15 (diff)
config: fix bug of default rpki port setting
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config')
-rw-r--r--config/default.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/default.go b/config/default.go
index fc15f046..9e60d94a 100644
--- a/config/default.go
+++ b/config/default.go
@@ -269,9 +269,9 @@ func setDefaultConfigValuesWithViper(v *viper.Viper, b *BgpConfigSet) error {
b.Neighbors[idx] = n
}
- for _, r := range b.RpkiServers {
+ for idx, r := range b.RpkiServers {
if r.Config.Port == 0 {
- r.Config.Port = rtr.RPKI_DEFAULT_PORT
+ b.RpkiServers[idx].Config.Port = rtr.RPKI_DEFAULT_PORT
}
}