diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-04-01 19:38:21 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-04-01 19:38:21 +0000 |
commit | a776e46990759c2315804398fa7d80cf19ef0099 (patch) | |
tree | feed262910eb81108c760be42364d77ebcf50cd8 /anytun.cpp | |
parent | fixed some typos @ internet draft (diff) |
catch destination unreachable (sender)
Diffstat (limited to 'anytun.cpp')
-rw-r--r-- | anytun.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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); } |