From 300588c5e86689b56d66555f8aefa9868d170361 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 17 Sep 2013 14:47:48 -0400 Subject: Add port and control port command line options to daemon and command line client, add new supernode keys to Defaults. --- node/NodeConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/NodeConfig.cpp') diff --git a/node/NodeConfig.cpp b/node/NodeConfig.cpp index 823e2798..bc1be763 100644 --- a/node/NodeConfig.cpp +++ b/node/NodeConfig.cpp @@ -62,10 +62,10 @@ namespace ZeroTier { -NodeConfig::NodeConfig(const RuntimeEnvironment *renv,const char *authToken) +NodeConfig::NodeConfig(const RuntimeEnvironment *renv,const char *authToken,unsigned int controlPort) throw(std::runtime_error) : _r(renv), - _controlSocket(true,ZT_CONTROL_UDP_PORT,false,&_CBcontrolPacketHandler,this) + _controlSocket(true,controlPort,false,&_CBcontrolPacketHandler,this) { { unsigned int csk[64]; -- cgit v1.2.3