]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/wireguard: drop unnecessary .in6 specifier
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Nov 2021 06:13:03 +0000 (15:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Nov 2021 18:56:00 +0000 (03:56 +0900)
This should not change any behavior, as the size of the IPv4 address is
smaller than IPv6.

src/network/netdev/wireguard.c

index 3734fa51c5c6f62c79ffd7773261a3a37df9d373..587e6db1c4709fcf34a4a814ae4c0756324c12f8 100644 (file)
@@ -696,7 +696,7 @@ int config_parse_wireguard_allowed_ips(
 
                 *ipmask = (WireguardIPmask) {
                         .family = family,
-                        .ip.in6 = addr.in6,
+                        .ip = addr,
                         .cidr = prefixlen,
                 };