diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 08:48:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 08:48:28 +0000 |
commit | 22a29c0010e8ecee203d610e2477150004c74cf6 (patch) | |
tree | 92257b3ce72b5e0ac22ab592272c777420e497db /plugins/cryptopant | |
parent | Releasing debian version 2.1.0-2. (diff) | |
download | dnscap-22a29c0010e8ecee203d610e2477150004c74cf6.tar.xz dnscap-22a29c0010e8ecee203d610e2477150004c74cf6.zip |
Merging upstream version 2.1.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/cryptopant')
-rw-r--r-- | plugins/cryptopant/cryptopant.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/cryptopant/cryptopant.c b/plugins/cryptopant/cryptopant.c index 2f8aa20..7fca715 100644 --- a/plugins/cryptopant/cryptopant.c +++ b/plugins/cryptopant/cryptopant.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022, OARC, Inc. + * Copyright (c) 2018-2023, OARC, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -187,8 +187,10 @@ int cryptopant_filter(const char* descr, iaddr* from, iaddr* to, uint8_t proto, #ifdef USE_CRYPTOPANT for (;;) { if (only_clients && sport == dns_port) { - from = 0; - break; + if (sport != dport) { + from = 0; + break; + } } if (only_servers && sport != dns_port) { from = 0; @@ -211,8 +213,10 @@ int cryptopant_filter(const char* descr, iaddr* from, iaddr* to, uint8_t proto, for (;;) { if (only_clients && dport == dns_port) { - to = 0; - break; + if (dport != sport) { + to = 0; + break; + } } if (only_servers && dport != dns_port) { to = 0; |