diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-01-21 17:54:03 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-10-19 01:26:21 +0200 |
commit | e5f52695a3b83f8ab38ffe949b2f7a04726dc0ab (patch) | |
tree | 2a2c6decbb72ad66b2e6a0949c668adfc854fdc0 /pkg/server/peer.go | |
parent | c8e54e7f8a2a49c8c035d5becf33b21fc0babf25 (diff) |
implement pluggable transporttransport
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
Diffstat (limited to 'pkg/server/peer.go')
-rw-r--r-- | pkg/server/peer.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/server/peer.go b/pkg/server/peer.go index 243a3dcc..b8946050 100644 --- a/pkg/server/peer.go +++ b/pkg/server/peer.go @@ -17,7 +17,6 @@ package server import ( "fmt" - "net" "time" "github.com/osrg/gobgp/internal/pkg/config" @@ -559,7 +558,7 @@ func (peer *peer) StaleAll(rfList []bgp.RouteFamily) []*table.Path { return peer.adjRibIn.StaleAll(rfList) } -func (peer *peer) PassConn(conn *net.TCPConn) { +func (peer *peer) PassConn(conn Conn) { select { case peer.fsm.connCh <- conn: default: |