summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-29 15:13:03 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-01 03:56:00 +0900
commit9e11bd58fb680c0bfd21f7920947bd486c6357ba (patch)
tree2bb14bec19e3112dc140aa64a4df0900fd0173b8 /src
parent5e82a6137546d3a2ac403df261732076130356a8 (diff)
downloadsystemd-9e11bd58fb680c0bfd21f7920947bd486c6357ba.tar.gz
network/wireguard: drop unnecessary .in6 specifier
This should not change any behavior, as the size of the IPv4 address is smaller than IPv6.
Diffstat (limited to 'src')
-rw-r--r--src/network/netdev/wireguard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/wireguard.c b/src/network/netdev/wireguard.c
index 3734fa51c5..587e6db1c4 100644
--- a/src/network/netdev/wireguard.c
+++ b/src/network/netdev/wireguard.c
@@ -696,7 +696,7 @@ int config_parse_wireguard_allowed_ips(
*ipmask = (WireguardIPmask) {
.family = family,
- .ip.in6 = addr.in6,
+ .ip = addr,
.cidr = prefixlen,
};