From a1ba1482c5a58b3049cc35392137fa590510fd0b Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 5 Sep 2019 07:41:19 +0100 Subject: [PATCH] Only set link if not multicast --- tunnel/default.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tunnel/default.go b/tunnel/default.go index 2d012dff..1aa5d2bf 100644 --- a/tunnel/default.go +++ b/tunnel/default.go @@ -855,10 +855,10 @@ func (t *tun) Dial(channel string, opts ...DialOption) (Session, error) { } t.RUnlock() - // discovered so set the link + // discovered so set the link if not multicast // TODO: pick the link efficiently based // on link status and saturation. - if c.discovered { + if c.discovered && !c.multicast { // set the link i := rand.Intn(len(links)) c.link = links[i]