]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: tunnel: create tunnels with AssignToLoopback=yes independently of .network...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Dec 2021 20:08:15 +0000 (05:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Dec 2021 16:54:01 +0000 (01:54 +0900)
src/network/netdev/tunnel.c

index 5dbbb83975d686fe3c8a165543050dc36ac980df..261c211c7dfd70679ad2868ec46b10f8ca76389b 100644 (file)
@@ -642,6 +642,9 @@ static int netdev_tunnel_verify(NetDev *netdev, const char *filename) {
         if (netdev->kind == NETDEV_KIND_VTI)
                 t->family = AF_INET;
 
+        if (t->assign_to_loopback)
+                t->independent = true;
+
         return 0;
 }