summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/default.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go
index 92c743dd..094afb2b 100644
--- a/config/default.go
+++ b/config/default.go
@@ -105,6 +105,8 @@ func setDefaultNeighborConfigValuesWithViper(v *viper.Viper, n *Neighbor, asn ui
n.Config.PeerType = PEER_TYPE_INTERNAL
}
+ n.State.PeerAs = n.Config.PeerAs
+
if !v.IsSet("neighbor.timers.config.connect-retry") && n.Timers.Config.ConnectRetry == 0 {
n.Timers.Config.ConnectRetry = float64(DEFAULT_CONNECT_RETRY)
}