From a776e46990759c2315804398fa7d80cf19ef0099 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Tue, 1 Apr 2008 19:38:21 +0000 Subject: catch destination unreachable (sender) --- anytun.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'anytun.cpp') 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); } -- cgit v1.2.3