mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
kernel-netlink: add outer addresses to policy when using BEET mode
This commit is contained in:
parent
5e4b1ad20a
commit
e4d5e0114f
@ -2055,7 +2055,7 @@ static status_t add_policy_internal(private_kernel_netlink_ipsec_t *this,
|
||||
policy->direction != POLICY_OUT;
|
||||
tmpl->family = ipsec->src->get_family(ipsec->src);
|
||||
|
||||
if (proto_mode == MODE_TUNNEL)
|
||||
if (proto_mode == MODE_TUNNEL || proto_mode == MODE_BEET)
|
||||
{ /* only for tunnel mode */
|
||||
host2xfrm(ipsec->src, &tmpl->saddr);
|
||||
host2xfrm(ipsec->dst, &tmpl->id.daddr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user