Fix root topology override

This commit is contained in:
Adam Ierymenko 2014-10-03 13:19:13 -07:00
parent d7189dd6c7
commit f853bc6a86

View File

@ -821,7 +821,7 @@ int main(int argc,char **argv)
routingTable = ZTCreatePlatformRoutingTable; 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()); controlService = new NodeControlService(node,authToken.c_str());
switch(node->run()) { switch(node->run()) {