summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 5983962..4c7b2b6 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -169,8 +169,13 @@ void* sender(void* p)
a->setKey(session_auth_key);
a->generate(encrypted_packet);
}
-
- param->src.send(encrypted_packet.getBuf(), encrypted_packet.getLength(), conn.remote_host_, conn.remote_port_);
+ try
+ {
+ param->src.send(encrypted_packet.getBuf(), encrypted_packet.getLength(), conn.remote_host_, conn.remote_port_);
+ }
+ catch (Exception e)
+ {
+ }
}
pthread_exit(NULL);
}