add comment to tunnel link selection
This commit is contained in:
parent
e15389febb
commit
cc5d811a83
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user