From cc5d811a83fdd1c805727fb256de2013822e2b23 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 4 Sep 2019 20:19:53 +0100 Subject: [PATCH] add comment to tunnel link selection --- tunnel/default.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tunnel/default.go b/tunnel/default.go index 860b6a96..2d012dff 100644 --- a/tunnel/default.go +++ b/tunnel/default.go @@ -856,6 +856,8 @@ func (t *tun) Dial(channel string, opts ...DialOption) (Session, error) { t.RUnlock() // discovered so set the link + // TODO: pick the link efficiently based + // on link status and saturation. if c.discovered { // set the link i := rand.Intn(len(links))