summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-12-01 22:20:18 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-12-19 20:11:56 +0900
commit598bba9fb2b761d1ad32776b0a61357500227de1 (patch)
tree02737038dc8c6b330cdf7690bc6cb3be2b3c8fe6 /internal
parent831b33fdb75074f7fbc19c6a7b966e1633ad5200 (diff)
server: use Dialer Control method instead of hack to modify connection before dialing
Use the feature of go 1.11 to remove the hack. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/config/default.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/config/default.go b/internal/pkg/config/default.go
index b03eec8e..08f9f865 100644
--- a/internal/pkg/config/default.go
+++ b/internal/pkg/config/default.go
@@ -197,7 +197,7 @@ func setDefaultNeighborConfigValuesWithViper(v *viper.Viper, n *Neighbor, g *Glo
}
n.AfiSafis[i].MpGracefulRestart.State.Enabled = n.AfiSafis[i].MpGracefulRestart.Config.Enabled
if !vv.IsSet("afi-safi.add-paths.config.receive") {
- if n.AddPaths.Config.Receive == true {
+ if n.AddPaths.Config.Receive {
n.AfiSafis[i].AddPaths.Config.Receive = n.AddPaths.Config.Receive
}
}