summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--anytun.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 16bc512..36d115e 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ CCFLAGS = -g -Wall
CCFLAGS += -DSOCKETS_NAMESPACE=sockets
CCFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
LD = g++
-LDFLAGS = -g -Wall -O2 -ldl -lpthread -lgcrypt -lssl
+LDFLAGS = -g -Wall -O2 -ldl -lpthread -lgcrypt -lssl -lboost_serialization
OPENVPNDEPS = openvpn/tun.o \
openvpn/error.o \
diff --git a/anytun.cpp b/anytun.cpp
index 7bcd238..8ea3d75 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -290,7 +290,7 @@ void* receiver(void* p)
}
//TODO Add multi connection support here
- ConnectionParam conn = param->cl.getConnection();
+ ConnectionParam & conn = param->cl.getConnection();
if (!checkPacketAuthTag(pack, c, conn))
continue;