commit 6efe47c3e317f3e93100b0c487289613b1a26cae
parent 769cd126e78efec61f0270336644c04bbb34f79e
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 22 Sep 2017 20:08:16 +0200
Use the current broker code
Signed-off-by: MTRNord <mtrnord1@gmail.com>
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/main.cpp b/main.cpp
@@ -1,6 +1,7 @@
#ifdef linux
#include <unistd.h>
#include "libs/INIReader.h"
+ #include "broker.h"
#endif
#include <iostream>
@@ -31,11 +32,15 @@ int main(int argc, char* argv[]) {
if (uid<0 || uid!=euid) {
/* We might have elevated privileges beyond that of the user who invoked
* the program, due to suid bit. Be very careful about trusting any data! */
+
+ broker::TunnelManager tunnelManager(reader.Get("broker", "namespace", "l2tp"));
+ tunnelManager.initialize();
} else {
/* Anything goes. */
}
return 0;
#else
- printf("You currently have to use Linux to run this. Other System support might eventually come in the future. :)\n"); return 1;
+ printf("You currently have to use Linux to run this. Other System support might eventually come in the future. :)\n");
+ return 1;
#endif
}
\ No newline at end of file