add SDK VirtualTap to new factory method

This commit is contained in:
Adam Ierymenko 2019-08-07 18:45:04 -05:00
parent 7436f85ad0
commit b11627a8bc
No known key found for this signature in database
GPG key ID: 1657198823E52A61
2 changed files with 14 additions and 23 deletions

View file

@ -100,30 +100,8 @@ using json = nlohmann::json;
#include "../controller/EmbeddedNetworkController.hpp"
#include "../controller/RabbitMQ.hpp"
#ifdef ZT_USE_TEST_TAP
#include "../osdep/TestEthernetTap.hpp"
namespace ZeroTier { typedef TestEthernetTap EthernetTap; }
#else
#ifdef ZT_SDK
#include "../controller/EmbeddedNetworkController.hpp"
#include "../node/Node.hpp"
// Use the virtual netcon endpoint instead of a tun/tap port driver
#include "../include/VirtualTap.hpp"
namespace ZeroTier { typedef VirtualTap EthernetTap; }
#else
#include "../osdep/EthernetTap.hpp"
#endif // ZT_SDK
#endif // ZT_USE_TEST_TAP
#ifndef ZT_SOFTWARE_UPDATE_DEFAULT
#define ZT_SOFTWARE_UPDATE_DEFAULT "disable"
#endif