From 68eb684f6df3aa158ff1a6f40864df93bcaabcda Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 16 Jan 2019 19:27:44 +0000 Subject: [PATCH] Fix mobile.go now that multicast interfaces are handled internally --- src/yggdrasil/mobile.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/yggdrasil/mobile.go b/src/yggdrasil/mobile.go index 2ffeffb..52215f0 100644 --- a/src/yggdrasil/mobile.go +++ b/src/yggdrasil/mobile.go @@ -7,7 +7,6 @@ import ( "encoding/json" "log" "os" - "regexp" "time" hjson "github.com/hjson/hjson-go" @@ -52,10 +51,6 @@ func (c *Core) StartAutoconfigure() error { if hostname, err := os.Hostname(); err == nil { nc.NodeInfo = map[string]interface{}{"name": hostname} } - ifceExpr, err := regexp.Compile(".*") - if err == nil { - c.ifceExpr = append(c.ifceExpr, ifceExpr) - } if err := c.Start(nc, logger); err != nil { return err } @@ -77,15 +72,6 @@ func (c *Core) StartJSON(configjson []byte) error { return err } nc.IfName = "dummy" - //c.log.Println(nc.MulticastInterfaces) - for _, ll := range nc.MulticastInterfaces { - //c.log.Println("Processing MC", ll) - ifceExpr, err := regexp.Compile(ll) - if err != nil { - panic(err) - } - c.AddMulticastInterfaceExpr(ifceExpr) - } if err := c.Start(nc, logger); err != nil { return err }