summaryrefslogtreecommitdiffhomepage
path: root/server/bmp.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/bmp.go')
-rw-r--r--server/bmp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/bmp.go b/server/bmp.go
index 2a5b245a..33011048 100644
--- a/server/bmp.go
+++ b/server/bmp.go
@@ -72,7 +72,7 @@ func newBMPClient(conf config.BmpServers, connCh chan *bmpConn) (*bmpClient, err
for _, c := range conf.BmpServerList {
b := c.Config
- go tryConnect(net.JoinHostPort(b.Address.String(), strconv.Itoa(int(b.Port))))
+ go tryConnect(net.JoinHostPort(b.Address, strconv.Itoa(int(b.Port))))
}
go func() {
@@ -99,7 +99,7 @@ func newBMPClient(conf config.BmpServers, connCh chan *bmpConn) (*bmpClient, err
c := func() *config.BmpServerConfig {
for _, c := range conf.BmpServerList {
b := &c.Config
- if host == net.JoinHostPort(b.Address.String(), strconv.Itoa(int(b.Port))) {
+ if host == net.JoinHostPort(b.Address, strconv.Itoa(int(b.Port))) {
return b
}
}