Declare tun factory and return its instance in new_tun_factory method

This commit is contained in:
Sergey Abramchuk
2017-04-15 15:40:32 +03:00
parent ef06fec9f7
commit 44f826cb12
3 changed files with 38 additions and 1 deletions
+2 -1
View File
@@ -10,6 +10,7 @@
#import <Foundation/Foundation.h>
#import "TUNFactory.h"
#import "OpenVPNAdapter+Internal.h"
#import "OpenVPNClient.h"
@@ -18,7 +19,7 @@ OpenVPNClient::OpenVPNClient(void *adapter) : ClientAPI::OpenVPNClient() {
}
TunClientFactory* OpenVPNClient::new_tun_factory(const ExternalTun::Config& conf, const OptionList& opt) {
return nullptr;
return new TUNFactory();
}
bool OpenVPNClient::tun_builder_new() {