Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Martynas Pumputis <m@lambda.lt>
  • Loading branch information
brb committed Mar 10, 2024
1 parent 0376feb commit 9610c09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bpf/lib/wireguard.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "common.h"
#include "overloadable.h"

#include "lib/proxy.h"

static __always_inline int
wg_maybe_redirect_to_encrypt(struct __ctx_buff *ctx)
{
Expand Down Expand Up @@ -135,7 +137,9 @@ wg_maybe_redirect_to_encrypt(struct __ctx_buff *ctx)
* the dst check far bellow).
*/
if (!src || (src->sec_identity == HOST_ID &&
((ctx->mark & MARK_MAGIC_HOST_MASK) == MARK_MAGIC_HOST)))
!(tc_index_from_ingress_proxy(ctx) ||
tc_index_from_egress_proxy(ctx))))
//((ctx->mark & MARK_MAGIC_HOST_MASK) == MARK_MAGIC_HOST)))
# endif /* TUNNEL_MODE */
goto out;
#endif /* !ENABLE_NODE_ENCRYPTION */
Expand Down

0 comments on commit 9610c09

Please sign in to comment.