Browse Source

Fix root topology override

Adam Ierymenko 11 years ago
parent
commit
f853bc6a86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.cpp

+ 1 - 1
main.cpp

@@ -821,7 +821,7 @@ int main(int argc,char **argv)
 			routingTable = ZTCreatePlatformRoutingTable;
 		}
 
-		node = new Node(homeDir,tapFactory,routingTable,udpPort,tcpPort,needsReset);
+		node = new Node(homeDir,tapFactory,routingTable,udpPort,tcpPort,needsReset,(overrideRootTopology.length() > 0) ? overrideRootTopology.c_str() : (const char *)0);
 		controlService = new NodeControlService(node,authToken.c_str());
 
 		switch(node->run()) {