Merge pull request #237 from zerotier/brenton/fix-switch
Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in sw…
This commit is contained in:
@@ -713,6 +713,10 @@ void NodeService::phyOnTcpData(PhySocket* sock, void** uptr, void* data, unsigne
|
||||
TcpConnection* tc = reinterpret_cast<TcpConnection*>(*uptr);
|
||||
tc->lastReceive = OSUtils::now();
|
||||
switch (tc->type) {
|
||||
case TcpConnection::TCP_UNCATEGORIZED_INCOMING:
|
||||
case TcpConnection::TCP_HTTP_INCOMING:
|
||||
case TcpConnection::TCP_HTTP_OUTGOING:
|
||||
break;
|
||||
case TcpConnection::TCP_TUNNEL_OUTGOING:
|
||||
tc->readq.append((const char*)data, len);
|
||||
while (tc->readq.length() >= 5) {
|
||||
|
||||
Reference in New Issue
Block a user