Make TCP optional, rename port constant.
This commit is contained in:
parent
73c1d43f2f
commit
181369964f
4 changed files with 21 additions and 12 deletions
|
@ -377,8 +377,8 @@ Node::Node(const char *hp,unsigned int udpPort,unsigned int tcpPort,bool resetId
|
|||
}
|
||||
}
|
||||
|
||||
impl->udpPort = ((udpPort > 0)&&(udpPort <= 0xffff)) ? udpPort : (unsigned int)ZT_DEFAULT_PORT;
|
||||
impl->tcpPort = ((tcpPort > 0)&&(tcpPort <= 0xffff)) ? tcpPort : (unsigned int)ZT_DEFAULT_PORT;
|
||||
impl->udpPort = udpPort & 0xffff;
|
||||
impl->tcpPort = tcpPort & 0xffff;
|
||||
impl->reasonForTermination = Node::NODE_RUNNING;
|
||||
impl->started = false;
|
||||
impl->running = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue