diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-12-09 13:55:04 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-12-09 13:55:04 +0000 |
commit | 3d1f56aa5993e8af44f98e74f38d0a81842508b0 (patch) | |
tree | bcce1f3b657278d8849e6eb2698a743bffd793f5 | |
parent | added dynamic ip support (diff) |
disabled replay protection
-rw-r--r-- | anytun.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -231,8 +231,8 @@ void* receiver(void* p) // this should be done by keymanagement anyway if(param->opt.getRemoteAddr() == "" && param->cl.empty()) { - createConnection(remote_host, remote_port, param->cl,param->opt.getSeqWindowSize()); cLog.msg(Log::PRIO_NOTICE) << "autodetected remote host " << remote_host << ":" << remote_port; + createConnection(remote_host, remote_port, param->cl,param->opt.getSeqWindowSize()); } //TODO Add multi connection support here @@ -245,13 +245,14 @@ void* receiver(void* p) //TODO add command line option to turn this off if (remote_host != conn.remote_host_ || remote_port != conn.remote_port_) { + cLog.msg(Log::PRIO_NOTICE) << "autodetected remote host ip changed " << remote_host << ":" << remote_port; conn.remote_host_=remote_host; conn.remote_port_=remote_port; } //Replay Protection - if (!checkPacketSeqNr(pack,conn)) - continue; + //if (!checkPacketSeqNr(pack,conn)) + // continue; pack.removeHeader(); if (!decryptPacket(pack, c, conn)) |