summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-11 10:45:52 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-11 10:45:52 +0000
commit328ca881c5822d07a11c890a78dc9f60b24c749e (patch)
treef2a295b438f0a25a3731dd6520fba4e992fc3526
parentcheckin for testing (diff)
fixed Makefile, ip detection
-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;