Browse Source

Merge pull request #311 from eyakubovich/fix-single-net

bug fix: no specified networks still led to multi-network path
Eugene Yakubovich 9 years ago
parent
commit
7288e264f8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      network/manager.go

+ 3 - 1
network/manager.go

@@ -119,7 +119,9 @@ func NewNetworkManager(ctx context.Context, sm subnet.Manager) (*Manager, error)
 	}
 
 	for _, name := range strings.Split(opts.networks, ",") {
-		manager.allowedNetworks[name] = true
+		if name != "" {
+			manager.allowedNetworks[name] = true
+		}
 	}
 
 	if manager.isMultiNetwork() {