summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
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);