network: tunnel: create tunnels with AssignToLoopback=yes independently of .network file

This commit is contained in:
Yu Watanabe
2021-12-08 01:54:01 +09:00
parent d4f8cd4d83
commit 9e29133085
+3
View 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;
}