summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-02-19 23:10:41 +0000
committerChristian Pointner <equinox@anytun.org>2014-02-19 23:10:41 +0000
commit963cfb6b627555c85e3f4cc871b2d9058075858f (patch)
tree3ba95fdb6686812064a0c96957eaa9550cfcded7
parentfixed remote end auto detection (diff)
disable replay attack warning when in rail mode
-rw-r--r--src/uanytun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index 392c055..3453a38 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -176,7 +176,8 @@ int process_sock_data(tun_device_t* dev, int fd, udp_t* sock, options_t* opt, pl
int result = seq_win_check_and_add(seq_win, encrypted_packet_get_sender_id(encrypted_packet), encrypted_packet_get_seq_nr(encrypted_packet));
if(result > 0) {
- log_printf(WARNING, "detected replay attack, discarding packet");
+ if(!(sock->rail_mode_))
+ log_printf(WARNING, "detected replay attack, discarding packet");
return 0;
} else if(result < 0) {
log_printf(ERROR, "memory error at sequence window");