From 7e74c11fdd07c0b48b81ced78178cc6e7fe3c296 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 29 Jul 2016 15:37:15 +0000 Subject: config: simplify ipv6 link local address peering from cli: ``` gobgp neighbor add fe80::902f:4eff:fe52:6985%eth0 as 65000 ``` from configuration file: ```toml [[neighbors]] [[neighbors.afi-safis]] [neighbors.config] neighbor-address = "fe80::902f:4eff:fe52:6985%eth0" peer-as = 65000 ``` Signed-off-by: ISHIDA Wataru --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/server.go') diff --git a/server/server.go b/server/server.go index ee8374a6..cfbe514f 100644 --- a/server/server.go +++ b/server/server.go @@ -162,7 +162,7 @@ func (server *BgpServer) Serve() { passConn := func(conn *net.TCPConn) { host, _, _ := net.SplitHostPort(conn.RemoteAddr().String()) ipaddr, _ := net.ResolveIPAddr("ip", host) - remoteAddr := ipaddr.IP.String() + remoteAddr := ipaddr.String() peer, found := server.neighborMap[remoteAddr] if found { if peer.fsm.adminState != ADMIN_STATE_UP { -- cgit v1.2.3