summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-29 18:30:47 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-29 18:30:47 +0000
commit21e0acb3aefc75d191b007e00f371836f42e3a42 (patch)
tree43f728a0a99cbff318210894bebe7450606940ad /anytun.cpp
parentchanged routing (diff)
new anyctr options
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 616e1e2..75ca704 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -158,7 +158,9 @@ void* sender(void* p)
if(cit==param->cl.getEnd())
continue;
ConnectionParam & conn = cit->second;
-
+
+ if(conn.remote_host_==""||!conn.remote_port_)
+ continue;
// generate packet-key
conn.kd_.generate(LABEL_SATP_ENCRYPTION, conn.seq_nr_, session_key);
conn.kd_.generate(LABEL_SATP_SALT, conn.seq_nr_, session_salt);